@@ -1407,6 +1407,22 @@ paths:
14071407 example: 1730160000000
14081408 schema:
14091409 type: integer
1410+ - name: last_sign_in_at_before
1411+ in: query
1412+ description: |-
1413+ Returns users whose last sign-in was before the given date (with millisecond precision).
1414+ Example: use 1700690400000 to retrieve users whose last sign-in was before 2023-11-23.
1415+ example: 1700690400000
1416+ schema:
1417+ type: integer
1418+ - name: last_sign_in_at_after
1419+ in: query
1420+ description: |-
1421+ Returns users whose last sign-in was after the given date (with millisecond precision).
1422+ Example: use 1700690400000 to retrieve users whose last sign-in was after 2023-11-23.
1423+ example: 1700690400000
1424+ schema:
1425+ type: integer
14101426 - $ref: '#/components/parameters/LimitParameter'
14111427 - $ref: '#/components/parameters/OffsetParameter'
14121428 - name: order_by
@@ -1788,6 +1804,22 @@ paths:
17881804 example: 1730160000000
17891805 schema:
17901806 type: integer
1807+ - name: last_sign_in_at_before
1808+ in: query
1809+ description: |-
1810+ Counts users whose last sign-in was before the given date (with millisecond precision).
1811+ Example: use 1700690400000 to count users whose last sign-in was before 2023-11-23.
1812+ example: 1700690400000
1813+ schema:
1814+ type: integer
1815+ - name: last_sign_in_at_after
1816+ in: query
1817+ description: |-
1818+ Counts users whose last sign-in was after the given date (with millisecond precision).
1819+ Example: use 1700690400000 to count users whose last sign-in was after 2023-11-23.
1820+ example: 1700690400000
1821+ schema:
1822+ type: integer
17911823 responses:
17921824 '200':
17931825 $ref: '#/components/responses/User.Count'
@@ -7027,6 +7059,8 @@ paths:
70277059 /platform/applications/{applicationID}/instances/{envOrInsID}/users: {}
70287060 /platform/applications/{applicationID}/instances/{envOrInsID}/users/{userID}/ban: {}
70297061 /platform/applications/{applicationID}/instances/{envOrInsID}/users/{userID}/unban: {}
7062+ /platform/applications/{applicationID}/instances/{instanceID}/config: {}
7063+ /platform/applications/{applicationID}/instances/{instanceID}/config/schema: {}
70307064 /billing/plans:
70317065 get:
70327066 operationId: GetCommercePlanList
@@ -7062,6 +7096,70 @@ paths:
70627096 $ref: '#/components/responses/UnprocessableEntity'
70637097 '500':
70647098 $ref: '#/components/responses/ClerkErrors'
7099+ /billing/prices:
7100+ get:
7101+ operationId: GetBillingPriceList
7102+ x-speakeasy-group: billing
7103+ x-speakeasy-name-override: listPrices
7104+ tags:
7105+ - Billing
7106+ summary: List all billing prices
7107+ description: |-
7108+ Returns a list of all prices for the instance. The prices are returned sorted by amount ascending,
7109+ then by creation date descending. This includes both default and custom prices. Pagination is supported.
7110+ parameters:
7111+ - $ref: '#/components/parameters/Paginated'
7112+ - $ref: '#/components/parameters/LimitParameter'
7113+ - $ref: '#/components/parameters/OffsetParameter'
7114+ - in: query
7115+ name: plan_id
7116+ description: Filter prices by plan ID
7117+ required: false
7118+ schema:
7119+ type: string
7120+ responses:
7121+ '200':
7122+ $ref: '#/components/responses/BillingPrice.List'
7123+ '400':
7124+ $ref: '#/components/responses/ClerkErrors'
7125+ '401':
7126+ $ref: '#/components/responses/AuthenticationInvalid'
7127+ '404':
7128+ $ref: '#/components/responses/ResourceNotFound'
7129+ '422':
7130+ $ref: '#/components/responses/UnprocessableEntity'
7131+ '500':
7132+ $ref: '#/components/responses/ClerkErrors'
7133+ post:
7134+ operationId: CreateBillingPrice
7135+ x-speakeasy-group: billing
7136+ x-speakeasy-name-override: createPrice
7137+ tags:
7138+ - Billing
7139+ summary: Create a custom billing price
7140+ description: |-
7141+ Creates a custom price for a billing plan. Custom prices allow you to offer different pricing
7142+ to specific customers while maintaining the same plan structure.
7143+ requestBody:
7144+ description: Parameters for creating a custom price
7145+ required: true
7146+ content:
7147+ application/json:
7148+ schema:
7149+ $ref: '#/components/schemas/CreateBillingPriceRequest'
7150+ responses:
7151+ '200':
7152+ $ref: '#/components/responses/BillingPrice'
7153+ '400':
7154+ $ref: '#/components/responses/ClerkErrors'
7155+ '401':
7156+ $ref: '#/components/responses/AuthenticationInvalid'
7157+ '404':
7158+ $ref: '#/components/responses/ResourceNotFound'
7159+ '422':
7160+ $ref: '#/components/responses/UnprocessableEntity'
7161+ '500':
7162+ $ref: '#/components/responses/ClerkErrors'
70657163 /billing/subscription_items:
70667164 get:
70677165 operationId: GetCommerceSubscriptionItemList
@@ -10942,6 +11040,11 @@ components:
1094211040 type: string
1094311041 email_address:
1094411042 type: string
11043+ email_address_verified:
11044+ type: boolean
11045+ nullable: true
11046+ description: |
11047+ Whether the email was verified by the OAuth provider at creation time. null = unknown (pre-migration data or custom OAuth providers), true = provider confirmed email was verified, false = provider confirmed email was NOT verified
1094511048 first_name:
1094611049 type: string
1094711050 last_name:
@@ -11328,7 +11431,7 @@ components:
1132811431 - image_url
1132911432 - has_image
1133011433 OrganizationMembership:
11331- description: Hello world
11434+ description: A user's membership in an organization
1133211435 type: object
1133311436 properties:
1133411437 id:
@@ -13716,6 +13819,103 @@ components:
1371613819 type: integer
1371713820 format: int64
1371813821 description: Total number of plans.
13822+ BillingPriceResponse:
13823+ type: object
13824+ additionalProperties: false
13825+ required:
13826+ - object
13827+ - id
13828+ - plan_id
13829+ - instance_id
13830+ - currency
13831+ - currency_symbol
13832+ - amount
13833+ - annual_monthly_amount
13834+ - fee
13835+ - annual_monthly_fee
13836+ - created_at
13837+ properties:
13838+ object:
13839+ type: string
13840+ description: String representing the object's type. Objects of the same type share the same value.
13841+ enum:
13842+ - commerce_price
13843+ id:
13844+ type: string
13845+ description: Unique identifier for the price.
13846+ plan_id:
13847+ type: string
13848+ description: Unique identifier for the associated plan.
13849+ instance_id:
13850+ type: string
13851+ description: Unique identifier for the instance.
13852+ currency:
13853+ type: string
13854+ description: The currency code (e.g., "USD").
13855+ currency_symbol:
13856+ type: string
13857+ description: The currency symbol (e.g., "$").
13858+ amount:
13859+ type: integer
13860+ format: int64
13861+ description: The amount in cents for the price.
13862+ annual_monthly_amount:
13863+ type: integer
13864+ format: int64
13865+ description: The monthly amount in cents when billed annually.
13866+ fee:
13867+ $ref: '#/components/schemas/CommerceMoneyResponse'
13868+ annual_monthly_fee:
13869+ $ref: '#/components/schemas/CommerceMoneyResponse'
13870+ description:
13871+ type: string
13872+ nullable: true
13873+ description: The description of the price.
13874+ created_at:
13875+ type: integer
13876+ format: int64
13877+ description: Unix timestamp (milliseconds) of creation.
13878+ PaginatedBillingPriceResponse:
13879+ type: object
13880+ additionalProperties: false
13881+ required:
13882+ - data
13883+ - total_count
13884+ properties:
13885+ data:
13886+ type: array
13887+ items:
13888+ $ref: '#/components/schemas/BillingPriceResponse'
13889+ description: Array of prices.
13890+ total_count:
13891+ type: integer
13892+ format: int64
13893+ description: Total number of prices.
13894+ CreateBillingPriceRequest:
13895+ type: object
13896+ additionalProperties: false
13897+ required:
13898+ - plan_id
13899+ - amount
13900+ properties:
13901+ plan_id:
13902+ type: string
13903+ description: The ID of the plan this price belongs to.
13904+ currency:
13905+ type: string
13906+ description: The currency code (e.g., "USD"). Defaults to USD.
13907+ default: USD
13908+ amount:
13909+ type: integer
13910+ format: int64
13911+ description: The amount in cents for the price. Must be at least $1 (100 cents).
13912+ annual_monthly_amount:
13913+ type: integer
13914+ format: int64
13915+ description: The monthly amount in cents when billed annually. Optional.
13916+ description:
13917+ type: string
13918+ description: An optional description for this custom price.
1371913919 PaginatedCommerceSubscriptionItemResponse:
1372013920 type: object
1372113921 additionalProperties: false
@@ -14187,62 +14387,6 @@ components:
1418714387 to_price_id:
1418814388 type: string
1418914389 description: The target price ID to transition to.
14190- CommercePriceResponse:
14191- type: object
14192- additionalProperties: false
14193- required:
14194- - object
14195- - id
14196- - plan_id
14197- - instance_id
14198- - currency
14199- - currency_symbol
14200- - amount
14201- - annual_monthly_amount
14202- - fee
14203- - annual_monthly_fee
14204- - created_at
14205- properties:
14206- object:
14207- type: string
14208- description: String representing the object's type. Objects of the same type share the same value.
14209- enum:
14210- - commerce_price
14211- id:
14212- type: string
14213- description: Unique identifier for the price.
14214- plan_id:
14215- type: string
14216- description: Unique identifier for the associated plan.
14217- instance_id:
14218- type: string
14219- description: Unique identifier for the instance.
14220- currency:
14221- type: string
14222- description: The currency code (e.g., "USD").
14223- currency_symbol:
14224- type: string
14225- description: The currency symbol (e.g., "$").
14226- amount:
14227- type: integer
14228- format: int64
14229- description: The amount in cents for the price.
14230- annual_monthly_amount:
14231- type: integer
14232- format: int64
14233- description: The monthly amount in cents when billed annually.
14234- fee:
14235- $ref: '#/components/schemas/CommerceMoneyResponse'
14236- annual_monthly_fee:
14237- $ref: '#/components/schemas/CommerceMoneyResponse'
14238- description:
14239- type: string
14240- nullable: true
14241- description: The description of the price.
14242- created_at:
14243- type: integer
14244- format: int64
14245- description: Unix timestamp (milliseconds) of creation.
1424614390 CommercePriceTransitionDetails:
1424714391 type: object
1424814392 additionalProperties: false
@@ -14258,7 +14402,7 @@ components:
1425814402 previous_plan:
1425914403 $ref: '#/components/schemas/schemas-CommercePlan'
1426014404 previous_price:
14261- $ref: '#/components/schemas/CommercePriceResponse '
14405+ $ref: '#/components/schemas/BillingPriceResponse '
1426214406 effective_at:
1426314407 type: integer
1426414408 format: int64
@@ -15323,6 +15467,18 @@ components:
1532315467 application/json:
1532415468 schema:
1532515469 $ref: '#/components/schemas/PaginatedCommercePlanResponse'
15470+ BillingPrice.List:
15471+ description: A list of billing prices.
15472+ content:
15473+ application/json:
15474+ schema:
15475+ $ref: '#/components/schemas/PaginatedBillingPriceResponse'
15476+ BillingPrice:
15477+ description: A billing price.
15478+ content:
15479+ application/json:
15480+ schema:
15481+ $ref: '#/components/schemas/BillingPriceResponse'
1532615482 CommerceSubscriptionItem.List:
1532715483 description: A list of commerce subscription items.
1532815484 content:
0 commit comments