@iblai/iblai-api 4.295.0-core → 4.296.0-core
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +96 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +97 -20
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +96 -19
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +10 -1
- package/dist/types/models/PaginatedPlatformApiKeyList.d.ts +7 -0
- package/dist/types/models/PatchedPlatformApiKey.d.ts +54 -0
- package/dist/types/models/PlatformApiKey.d.ts +25 -1
- package/dist/types/models/PlatformApiKeyModeEnum.d.ts +8 -0
- package/dist/types/models/PlatformApiTokenFieldPermissions.d.ts +12 -0
- package/dist/types/models/PlatformApiToken_groups_to_add_Permission.d.ts +3 -0
- package/dist/types/models/PlatformApiToken_groups_to_remove_Permission.d.ts +3 -0
- package/dist/types/models/PlatformApiToken_mode_Permission.d.ts +3 -0
- package/dist/types/models/PlatformApiToken_policies_to_add_Permission.d.ts +3 -0
- package/dist/types/models/PlatformApiToken_policies_to_remove_Permission.d.ts +3 -0
- package/dist/types/models/StripeCheckoutSessionRequest.d.ts +2 -2
- package/dist/types/models/{ModeEnum.d.ts → StripeCheckoutSessionRequestModeEnum.d.ts} +1 -1
- package/dist/types/services/CoreService.d.ts +50 -3
- package/package.json +1 -1
- package/sdk_schema.yml +302 -16
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +10 -1
- package/src/models/PaginatedPlatformApiKeyList.ts +12 -0
- package/src/models/PatchedPlatformApiKey.ts +59 -0
- package/src/models/PlatformApiKey.ts +25 -1
- package/src/models/PlatformApiKeyModeEnum.ts +12 -0
- package/src/models/PlatformApiTokenFieldPermissions.ts +17 -0
- package/src/models/PlatformApiToken_groups_to_add_Permission.ts +8 -0
- package/src/models/PlatformApiToken_groups_to_remove_Permission.ts +8 -0
- package/src/models/PlatformApiToken_mode_Permission.ts +8 -0
- package/src/models/PlatformApiToken_policies_to_add_Permission.ts +8 -0
- package/src/models/PlatformApiToken_policies_to_remove_Permission.ts +8 -0
- package/src/models/StripeCheckoutSessionRequest.ts +2 -2
- package/src/models/{ModeEnum.ts → StripeCheckoutSessionRequestModeEnum.ts} +1 -1
- package/src/services/CoreService.ts +94 -2
package/sdk_schema.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ibl-data-manager
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.296.0-core
|
|
5
5
|
description: API for iblai
|
|
6
6
|
paths:
|
|
7
7
|
/api/analytics/content/:
|
|
@@ -18003,6 +18003,18 @@ paths:
|
|
|
18003
18003
|
operationId: core_platform_api_tokens_list
|
|
18004
18004
|
description: List Platform API Key's belonging to the target platform
|
|
18005
18005
|
parameters:
|
|
18006
|
+
- name: page
|
|
18007
|
+
required: false
|
|
18008
|
+
in: query
|
|
18009
|
+
description: A page number within the paginated result set.
|
|
18010
|
+
schema:
|
|
18011
|
+
type: integer
|
|
18012
|
+
- name: page_size
|
|
18013
|
+
required: false
|
|
18014
|
+
in: query
|
|
18015
|
+
description: Number of results to return per page.
|
|
18016
|
+
schema:
|
|
18017
|
+
type: integer
|
|
18006
18018
|
- in: query
|
|
18007
18019
|
name: platform_key
|
|
18008
18020
|
schema:
|
|
@@ -18017,9 +18029,7 @@ paths:
|
|
|
18017
18029
|
content:
|
|
18018
18030
|
application/json:
|
|
18019
18031
|
schema:
|
|
18020
|
-
|
|
18021
|
-
items:
|
|
18022
|
-
$ref: '#/components/schemas/PlatformApiKey'
|
|
18032
|
+
$ref: '#/components/schemas/PaginatedPlatformApiKeyList'
|
|
18023
18033
|
description: ''
|
|
18024
18034
|
post:
|
|
18025
18035
|
operationId: core_platform_api_tokens_create
|
|
@@ -18052,6 +18062,75 @@ paths:
|
|
|
18052
18062
|
$ref: '#/components/schemas/PlatformApiKey'
|
|
18053
18063
|
description: ''
|
|
18054
18064
|
/api/core/platform/api-tokens/{name}:
|
|
18065
|
+
get:
|
|
18066
|
+
operationId: core_platform_api_tokens_retrieve
|
|
18067
|
+
description: Retrieve a single Platform Api Key by name, including the policies
|
|
18068
|
+
and groups currently associated with it
|
|
18069
|
+
parameters:
|
|
18070
|
+
- in: path
|
|
18071
|
+
name: name
|
|
18072
|
+
schema:
|
|
18073
|
+
type: string
|
|
18074
|
+
required: true
|
|
18075
|
+
- in: query
|
|
18076
|
+
name: platform_key
|
|
18077
|
+
schema:
|
|
18078
|
+
type: string
|
|
18079
|
+
minLength: 1
|
|
18080
|
+
description: Platform key of target platform
|
|
18081
|
+
required: true
|
|
18082
|
+
tags:
|
|
18083
|
+
- core
|
|
18084
|
+
responses:
|
|
18085
|
+
'200':
|
|
18086
|
+
content:
|
|
18087
|
+
application/json:
|
|
18088
|
+
schema:
|
|
18089
|
+
$ref: '#/components/schemas/PlatformApiKey'
|
|
18090
|
+
description: ''
|
|
18091
|
+
patch:
|
|
18092
|
+
operationId: core_platform_api_tokens_partial_update
|
|
18093
|
+
description: Update a Platform Api Key's mode and associated policies/groups
|
|
18094
|
+
in the target platform
|
|
18095
|
+
parameters:
|
|
18096
|
+
- in: path
|
|
18097
|
+
name: name
|
|
18098
|
+
schema:
|
|
18099
|
+
type: string
|
|
18100
|
+
required: true
|
|
18101
|
+
- in: query
|
|
18102
|
+
name: platform_key
|
|
18103
|
+
schema:
|
|
18104
|
+
type: string
|
|
18105
|
+
minLength: 1
|
|
18106
|
+
description: Platform key of target platform
|
|
18107
|
+
required: true
|
|
18108
|
+
tags:
|
|
18109
|
+
- core
|
|
18110
|
+
requestBody:
|
|
18111
|
+
content:
|
|
18112
|
+
application/json:
|
|
18113
|
+
schema:
|
|
18114
|
+
$ref: '#/components/schemas/PatchedPlatformApiKey'
|
|
18115
|
+
application/scim+json:
|
|
18116
|
+
schema:
|
|
18117
|
+
$ref: '#/components/schemas/PatchedPlatformApiKey'
|
|
18118
|
+
application/x-www-form-urlencoded:
|
|
18119
|
+
schema:
|
|
18120
|
+
$ref: '#/components/schemas/PatchedPlatformApiKey'
|
|
18121
|
+
multipart/form-data:
|
|
18122
|
+
schema:
|
|
18123
|
+
$ref: '#/components/schemas/PatchedPlatformApiKey'
|
|
18124
|
+
'*/*':
|
|
18125
|
+
schema:
|
|
18126
|
+
$ref: '#/components/schemas/PatchedPlatformApiKey'
|
|
18127
|
+
responses:
|
|
18128
|
+
'200':
|
|
18129
|
+
content:
|
|
18130
|
+
application/json:
|
|
18131
|
+
schema:
|
|
18132
|
+
$ref: '#/components/schemas/PlatformApiKey'
|
|
18133
|
+
description: ''
|
|
18055
18134
|
delete:
|
|
18056
18135
|
operationId: core_platform_api_tokens_destroy
|
|
18057
18136
|
description: Delete Platform Api Key by name in the target platform
|
|
@@ -18073,6 +18152,28 @@ paths:
|
|
|
18073
18152
|
responses:
|
|
18074
18153
|
'204':
|
|
18075
18154
|
description: No response body
|
|
18155
|
+
/api/core/platform/api-tokens/field-permissions/:
|
|
18156
|
+
get:
|
|
18157
|
+
operationId: core_platform_api_tokens_field_permissions_retrieve
|
|
18158
|
+
description: 'Per-field write permissions for the create form, as {field: {"write":
|
|
18159
|
+
bool}}. Gated on create access like the create endpoint.'
|
|
18160
|
+
parameters:
|
|
18161
|
+
- in: query
|
|
18162
|
+
name: platform_key
|
|
18163
|
+
schema:
|
|
18164
|
+
type: string
|
|
18165
|
+
minLength: 1
|
|
18166
|
+
description: Platform key of target platform
|
|
18167
|
+
required: true
|
|
18168
|
+
tags:
|
|
18169
|
+
- core
|
|
18170
|
+
responses:
|
|
18171
|
+
'200':
|
|
18172
|
+
content:
|
|
18173
|
+
application/json:
|
|
18174
|
+
schema:
|
|
18175
|
+
$ref: '#/components/schemas/PlatformApiTokenFieldPermissions'
|
|
18176
|
+
description: ''
|
|
18076
18177
|
/api/core/platform/config/site/:
|
|
18077
18178
|
get:
|
|
18078
18179
|
operationId: core_platform_config_site_retrieve
|
|
@@ -46349,16 +46450,6 @@ components:
|
|
|
46349
46450
|
additionalProperties: {}
|
|
46350
46451
|
required:
|
|
46351
46452
|
- total
|
|
46352
|
-
ModeEnum:
|
|
46353
|
-
enum:
|
|
46354
|
-
- subscription
|
|
46355
|
-
- payment
|
|
46356
|
-
- setup
|
|
46357
|
-
type: string
|
|
46358
|
-
description: |-
|
|
46359
|
-
* `subscription` - subscription
|
|
46360
|
-
* `payment` - payment
|
|
46361
|
-
* `setup` - setup
|
|
46362
46453
|
NewPerLearnerList:
|
|
46363
46454
|
type: object
|
|
46364
46455
|
properties:
|
|
@@ -47874,6 +47965,29 @@ components:
|
|
|
47874
47965
|
type: array
|
|
47875
47966
|
items:
|
|
47876
47967
|
$ref: '#/components/schemas/PipelineStage'
|
|
47968
|
+
PaginatedPlatformApiKeyList:
|
|
47969
|
+
type: object
|
|
47970
|
+
required:
|
|
47971
|
+
- count
|
|
47972
|
+
- results
|
|
47973
|
+
properties:
|
|
47974
|
+
count:
|
|
47975
|
+
type: integer
|
|
47976
|
+
example: 123
|
|
47977
|
+
next:
|
|
47978
|
+
type: string
|
|
47979
|
+
nullable: true
|
|
47980
|
+
format: uri
|
|
47981
|
+
example: http://api.example.org/accounts/?page=4
|
|
47982
|
+
previous:
|
|
47983
|
+
type: string
|
|
47984
|
+
nullable: true
|
|
47985
|
+
format: uri
|
|
47986
|
+
example: http://api.example.org/accounts/?page=2
|
|
47987
|
+
results:
|
|
47988
|
+
type: array
|
|
47989
|
+
items:
|
|
47990
|
+
$ref: '#/components/schemas/PlatformApiKey'
|
|
47877
47991
|
PaginatedPlatformInvitation:
|
|
47878
47992
|
type: object
|
|
47879
47993
|
description: Response serializer for paginated platform invitation list
|
|
@@ -49662,6 +49776,74 @@ components:
|
|
|
49662
49776
|
type: string
|
|
49663
49777
|
format: date-time
|
|
49664
49778
|
readOnly: true
|
|
49779
|
+
PatchedPlatformApiKey:
|
|
49780
|
+
type: object
|
|
49781
|
+
description: Serializer for PlatformApiKey's
|
|
49782
|
+
properties:
|
|
49783
|
+
username:
|
|
49784
|
+
type: string
|
|
49785
|
+
readOnly: true
|
|
49786
|
+
description: Username that created token
|
|
49787
|
+
name:
|
|
49788
|
+
type: string
|
|
49789
|
+
description: Name of the token. Used by the user to identify the token.
|
|
49790
|
+
maxLength: 255
|
|
49791
|
+
pattern: ^[-a-zA-Z0-9_]+$
|
|
49792
|
+
key:
|
|
49793
|
+
type: string
|
|
49794
|
+
readOnly: true
|
|
49795
|
+
platform_key:
|
|
49796
|
+
type: string
|
|
49797
|
+
description: The platform key
|
|
49798
|
+
writeOnly: true
|
|
49799
|
+
expires:
|
|
49800
|
+
type: string
|
|
49801
|
+
format: date-time
|
|
49802
|
+
readOnly: true
|
|
49803
|
+
description: When token expires
|
|
49804
|
+
expires_in:
|
|
49805
|
+
type: string
|
|
49806
|
+
writeOnly: true
|
|
49807
|
+
nullable: true
|
|
49808
|
+
description: 'Optional duration until key expires. Format: [DD] [HH:[MM:]]ss[.uuuuuu]'
|
|
49809
|
+
created:
|
|
49810
|
+
type: string
|
|
49811
|
+
format: date-time
|
|
49812
|
+
readOnly: true
|
|
49813
|
+
description: When token was created
|
|
49814
|
+
mode:
|
|
49815
|
+
allOf:
|
|
49816
|
+
- $ref: '#/components/schemas/PlatformApiKeyModeEnum'
|
|
49817
|
+
default: owner
|
|
49818
|
+
description: |-
|
|
49819
|
+
How permissions resolve: 'owner' (default) uses the owner's RBAC permissions; 'token_policies' uses the policies/groups this token is associated with
|
|
49820
|
+
|
|
49821
|
+
* `owner` - Owner permissions
|
|
49822
|
+
* `token_policies` - Token policies
|
|
49823
|
+
policies_to_add:
|
|
49824
|
+
type: array
|
|
49825
|
+
items:
|
|
49826
|
+
type: integer
|
|
49827
|
+
writeOnly: true
|
|
49828
|
+
description: RbacPolicy IDs to associate with this token (mode=token_policies)
|
|
49829
|
+
policies_to_remove:
|
|
49830
|
+
type: array
|
|
49831
|
+
items:
|
|
49832
|
+
type: integer
|
|
49833
|
+
writeOnly: true
|
|
49834
|
+
description: RbacPolicy IDs to disassociate from this token (mode=token_policies)
|
|
49835
|
+
groups_to_add:
|
|
49836
|
+
type: array
|
|
49837
|
+
items:
|
|
49838
|
+
type: integer
|
|
49839
|
+
writeOnly: true
|
|
49840
|
+
description: RbacGroup IDs to associate with this token (mode=token_policies)
|
|
49841
|
+
groups_to_remove:
|
|
49842
|
+
type: array
|
|
49843
|
+
items:
|
|
49844
|
+
type: integer
|
|
49845
|
+
writeOnly: true
|
|
49846
|
+
description: RbacGroup IDs to disassociate from this token (mode=token_policies)
|
|
49665
49847
|
PatchedPlatformPublicImageAsset:
|
|
49666
49848
|
type: object
|
|
49667
49849
|
properties:
|
|
@@ -51384,13 +51566,107 @@ components:
|
|
|
51384
51566
|
format: date-time
|
|
51385
51567
|
readOnly: true
|
|
51386
51568
|
description: When token was created
|
|
51569
|
+
mode:
|
|
51570
|
+
allOf:
|
|
51571
|
+
- $ref: '#/components/schemas/PlatformApiKeyModeEnum'
|
|
51572
|
+
default: owner
|
|
51573
|
+
description: |-
|
|
51574
|
+
How permissions resolve: 'owner' (default) uses the owner's RBAC permissions; 'token_policies' uses the policies/groups this token is associated with
|
|
51575
|
+
|
|
51576
|
+
* `owner` - Owner permissions
|
|
51577
|
+
* `token_policies` - Token policies
|
|
51578
|
+
policies_to_add:
|
|
51579
|
+
type: array
|
|
51580
|
+
items:
|
|
51581
|
+
type: integer
|
|
51582
|
+
writeOnly: true
|
|
51583
|
+
description: RbacPolicy IDs to associate with this token (mode=token_policies)
|
|
51584
|
+
policies_to_remove:
|
|
51585
|
+
type: array
|
|
51586
|
+
items:
|
|
51587
|
+
type: integer
|
|
51588
|
+
writeOnly: true
|
|
51589
|
+
description: RbacPolicy IDs to disassociate from this token (mode=token_policies)
|
|
51590
|
+
groups_to_add:
|
|
51591
|
+
type: array
|
|
51592
|
+
items:
|
|
51593
|
+
type: integer
|
|
51594
|
+
writeOnly: true
|
|
51595
|
+
description: RbacGroup IDs to associate with this token (mode=token_policies)
|
|
51596
|
+
groups_to_remove:
|
|
51597
|
+
type: array
|
|
51598
|
+
items:
|
|
51599
|
+
type: integer
|
|
51600
|
+
writeOnly: true
|
|
51601
|
+
description: RbacGroup IDs to disassociate from this token (mode=token_policies)
|
|
51387
51602
|
required:
|
|
51388
51603
|
- created
|
|
51389
51604
|
- expires
|
|
51390
51605
|
- key
|
|
51391
51606
|
- name
|
|
51392
|
-
- platform_key
|
|
51393
51607
|
- username
|
|
51608
|
+
PlatformApiKeyModeEnum:
|
|
51609
|
+
enum:
|
|
51610
|
+
- owner
|
|
51611
|
+
- token_policies
|
|
51612
|
+
type: string
|
|
51613
|
+
description: |-
|
|
51614
|
+
* `owner` - Owner permissions
|
|
51615
|
+
* `token_policies` - Token policies
|
|
51616
|
+
PlatformApiTokenFieldPermissions:
|
|
51617
|
+
type: object
|
|
51618
|
+
properties:
|
|
51619
|
+
mode:
|
|
51620
|
+
$ref: '#/components/schemas/PlatformApiToken_mode_Permission'
|
|
51621
|
+
policies_to_add:
|
|
51622
|
+
$ref: '#/components/schemas/PlatformApiToken_policies_to_add_Permission'
|
|
51623
|
+
policies_to_remove:
|
|
51624
|
+
$ref: '#/components/schemas/PlatformApiToken_policies_to_remove_Permission'
|
|
51625
|
+
groups_to_add:
|
|
51626
|
+
$ref: '#/components/schemas/PlatformApiToken_groups_to_add_Permission'
|
|
51627
|
+
groups_to_remove:
|
|
51628
|
+
$ref: '#/components/schemas/PlatformApiToken_groups_to_remove_Permission'
|
|
51629
|
+
required:
|
|
51630
|
+
- groups_to_add
|
|
51631
|
+
- groups_to_remove
|
|
51632
|
+
- mode
|
|
51633
|
+
- policies_to_add
|
|
51634
|
+
- policies_to_remove
|
|
51635
|
+
PlatformApiToken_groups_to_add_Permission:
|
|
51636
|
+
type: object
|
|
51637
|
+
properties:
|
|
51638
|
+
write:
|
|
51639
|
+
type: boolean
|
|
51640
|
+
required:
|
|
51641
|
+
- write
|
|
51642
|
+
PlatformApiToken_groups_to_remove_Permission:
|
|
51643
|
+
type: object
|
|
51644
|
+
properties:
|
|
51645
|
+
write:
|
|
51646
|
+
type: boolean
|
|
51647
|
+
required:
|
|
51648
|
+
- write
|
|
51649
|
+
PlatformApiToken_mode_Permission:
|
|
51650
|
+
type: object
|
|
51651
|
+
properties:
|
|
51652
|
+
write:
|
|
51653
|
+
type: boolean
|
|
51654
|
+
required:
|
|
51655
|
+
- write
|
|
51656
|
+
PlatformApiToken_policies_to_add_Permission:
|
|
51657
|
+
type: object
|
|
51658
|
+
properties:
|
|
51659
|
+
write:
|
|
51660
|
+
type: boolean
|
|
51661
|
+
required:
|
|
51662
|
+
- write
|
|
51663
|
+
PlatformApiToken_policies_to_remove_Permission:
|
|
51664
|
+
type: object
|
|
51665
|
+
properties:
|
|
51666
|
+
write:
|
|
51667
|
+
type: boolean
|
|
51668
|
+
required:
|
|
51669
|
+
- write
|
|
51394
51670
|
PlatformConfigurationList:
|
|
51395
51671
|
type: object
|
|
51396
51672
|
description: Serializer for listing platform configurations
|
|
@@ -55308,7 +55584,7 @@ components:
|
|
|
55308
55584
|
description: URL to redirect if checkout cancelled
|
|
55309
55585
|
mode:
|
|
55310
55586
|
allOf:
|
|
55311
|
-
- $ref: '#/components/schemas/
|
|
55587
|
+
- $ref: '#/components/schemas/StripeCheckoutSessionRequestModeEnum'
|
|
55312
55588
|
default: subscription
|
|
55313
55589
|
description: |-
|
|
55314
55590
|
Checkout mode
|
|
@@ -55353,6 +55629,16 @@ components:
|
|
|
55353
55629
|
- cancel_url
|
|
55354
55630
|
- success_url
|
|
55355
55631
|
- tenant
|
|
55632
|
+
StripeCheckoutSessionRequestModeEnum:
|
|
55633
|
+
enum:
|
|
55634
|
+
- subscription
|
|
55635
|
+
- payment
|
|
55636
|
+
- setup
|
|
55637
|
+
type: string
|
|
55638
|
+
description: |-
|
|
55639
|
+
* `subscription` - subscription
|
|
55640
|
+
* `payment` - payment
|
|
55641
|
+
* `setup` - setup
|
|
55356
55642
|
StripeCheckoutSessionResponse:
|
|
55357
55643
|
type: object
|
|
55358
55644
|
description: Stripe checkout session serialized response
|
package/src/core/OpenAPI.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -228,7 +228,6 @@ export type { MentorDetail } from './models/MentorDetail';
|
|
|
228
228
|
export type { MentorInteractions } from './models/MentorInteractions';
|
|
229
229
|
export type { MentorPolicy } from './models/MentorPolicy';
|
|
230
230
|
export type { MetricDetail } from './models/MetricDetail';
|
|
231
|
-
export { ModeEnum } from './models/ModeEnum';
|
|
232
231
|
export type { NewPerLearnerList } from './models/NewPerLearnerList';
|
|
233
232
|
export type { NewPerLearnerListData } from './models/NewPerLearnerListData';
|
|
234
233
|
export type { Notification } from './models/Notification';
|
|
@@ -273,6 +272,7 @@ export type { PaginatedPathwaySuggestion } from './models/PaginatedPathwaySugges
|
|
|
273
272
|
export type { PaginatedPersonList } from './models/PaginatedPersonList';
|
|
274
273
|
export type { PaginatedPipelineList } from './models/PaginatedPipelineList';
|
|
275
274
|
export type { PaginatedPipelineStageList } from './models/PaginatedPipelineStageList';
|
|
275
|
+
export type { PaginatedPlatformApiKeyList } from './models/PaginatedPlatformApiKeyList';
|
|
276
276
|
export type { PaginatedPlatformInvitation } from './models/PaginatedPlatformInvitation';
|
|
277
277
|
export type { PaginatedPlatformLicense } from './models/PaginatedPlatformLicense';
|
|
278
278
|
export type { PaginatedProgramGroupSuggestion } from './models/PaginatedProgramGroupSuggestion';
|
|
@@ -312,6 +312,7 @@ export type { PatchedOrganization } from './models/PatchedOrganization';
|
|
|
312
312
|
export type { PatchedPerson } from './models/PatchedPerson';
|
|
313
313
|
export type { PatchedPipeline } from './models/PatchedPipeline';
|
|
314
314
|
export type { PatchedPipelineStage } from './models/PatchedPipelineStage';
|
|
315
|
+
export type { PatchedPlatformApiKey } from './models/PatchedPlatformApiKey';
|
|
315
316
|
export type { PatchedPlatformPublicImageAsset } from './models/PatchedPlatformPublicImageAsset';
|
|
316
317
|
export type { PatchedPlatformPublicMetadata } from './models/PatchedPlatformPublicMetadata';
|
|
317
318
|
export type { PatchedRbacGroup } from './models/PatchedRbacGroup';
|
|
@@ -376,6 +377,13 @@ export type { Pipeline } from './models/Pipeline';
|
|
|
376
377
|
export type { PipelineStage } from './models/PipelineStage';
|
|
377
378
|
export type { Platform } from './models/Platform';
|
|
378
379
|
export type { PlatformApiKey } from './models/PlatformApiKey';
|
|
380
|
+
export { PlatformApiKeyModeEnum } from './models/PlatformApiKeyModeEnum';
|
|
381
|
+
export type { PlatformApiToken_groups_to_add_Permission } from './models/PlatformApiToken_groups_to_add_Permission';
|
|
382
|
+
export type { PlatformApiToken_groups_to_remove_Permission } from './models/PlatformApiToken_groups_to_remove_Permission';
|
|
383
|
+
export type { PlatformApiToken_mode_Permission } from './models/PlatformApiToken_mode_Permission';
|
|
384
|
+
export type { PlatformApiToken_policies_to_add_Permission } from './models/PlatformApiToken_policies_to_add_Permission';
|
|
385
|
+
export type { PlatformApiToken_policies_to_remove_Permission } from './models/PlatformApiToken_policies_to_remove_Permission';
|
|
386
|
+
export type { PlatformApiTokenFieldPermissions } from './models/PlatformApiTokenFieldPermissions';
|
|
379
387
|
export type { PlatformConfigurationList } from './models/PlatformConfigurationList';
|
|
380
388
|
export type { PlatformConfigurationSet } from './models/PlatformConfigurationSet';
|
|
381
389
|
export type { PlatformConfigurationSetResponse } from './models/PlatformConfigurationSetResponse';
|
|
@@ -501,6 +509,7 @@ export { Status0e3Enum } from './models/Status0e3Enum';
|
|
|
501
509
|
export { Status147Enum } from './models/Status147Enum';
|
|
502
510
|
export { Status3daEnum } from './models/Status3daEnum';
|
|
503
511
|
export type { StripeCheckoutSessionRequest } from './models/StripeCheckoutSessionRequest';
|
|
512
|
+
export { StripeCheckoutSessionRequestModeEnum } from './models/StripeCheckoutSessionRequestModeEnum';
|
|
504
513
|
export type { StripeCheckoutSessionResponse } from './models/StripeCheckoutSessionResponse';
|
|
505
514
|
export type { StripeConnectDashboardLink } from './models/StripeConnectDashboardLink';
|
|
506
515
|
export type { StripeConnectOnboard } from './models/StripeConnectOnboard';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { PlatformApiKey } from './PlatformApiKey';
|
|
6
|
+
export type PaginatedPlatformApiKeyList = {
|
|
7
|
+
count: number;
|
|
8
|
+
next?: string | null;
|
|
9
|
+
previous?: string | null;
|
|
10
|
+
results: Array<PlatformApiKey>;
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { PlatformApiKeyModeEnum } from './PlatformApiKeyModeEnum';
|
|
6
|
+
/**
|
|
7
|
+
* Serializer for PlatformApiKey's
|
|
8
|
+
*/
|
|
9
|
+
export type PatchedPlatformApiKey = {
|
|
10
|
+
/**
|
|
11
|
+
* Username that created token
|
|
12
|
+
*/
|
|
13
|
+
readonly username?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the token. Used by the user to identify the token.
|
|
16
|
+
*/
|
|
17
|
+
name?: string;
|
|
18
|
+
readonly key?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The platform key
|
|
21
|
+
*/
|
|
22
|
+
platform_key?: string;
|
|
23
|
+
/**
|
|
24
|
+
* When token expires
|
|
25
|
+
*/
|
|
26
|
+
readonly expires?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Optional duration until key expires. Format: [DD] [HH:[MM:]]ss[.uuuuuu]
|
|
29
|
+
*/
|
|
30
|
+
expires_in?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* When token was created
|
|
33
|
+
*/
|
|
34
|
+
readonly created?: string;
|
|
35
|
+
/**
|
|
36
|
+
* How permissions resolve: 'owner' (default) uses the owner's RBAC permissions; 'token_policies' uses the policies/groups this token is associated with
|
|
37
|
+
*
|
|
38
|
+
* * `owner` - Owner permissions
|
|
39
|
+
* * `token_policies` - Token policies
|
|
40
|
+
*/
|
|
41
|
+
mode?: PlatformApiKeyModeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* RbacPolicy IDs to associate with this token (mode=token_policies)
|
|
44
|
+
*/
|
|
45
|
+
policies_to_add?: Array<number>;
|
|
46
|
+
/**
|
|
47
|
+
* RbacPolicy IDs to disassociate from this token (mode=token_policies)
|
|
48
|
+
*/
|
|
49
|
+
policies_to_remove?: Array<number>;
|
|
50
|
+
/**
|
|
51
|
+
* RbacGroup IDs to associate with this token (mode=token_policies)
|
|
52
|
+
*/
|
|
53
|
+
groups_to_add?: Array<number>;
|
|
54
|
+
/**
|
|
55
|
+
* RbacGroup IDs to disassociate from this token (mode=token_policies)
|
|
56
|
+
*/
|
|
57
|
+
groups_to_remove?: Array<number>;
|
|
58
|
+
};
|
|
59
|
+
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { PlatformApiKeyModeEnum } from './PlatformApiKeyModeEnum';
|
|
5
6
|
/**
|
|
6
7
|
* Serializer for PlatformApiKey's
|
|
7
8
|
*/
|
|
@@ -18,7 +19,7 @@ export type PlatformApiKey = {
|
|
|
18
19
|
/**
|
|
19
20
|
* The platform key
|
|
20
21
|
*/
|
|
21
|
-
platform_key
|
|
22
|
+
platform_key?: string;
|
|
22
23
|
/**
|
|
23
24
|
* When token expires
|
|
24
25
|
*/
|
|
@@ -31,5 +32,28 @@ export type PlatformApiKey = {
|
|
|
31
32
|
* When token was created
|
|
32
33
|
*/
|
|
33
34
|
readonly created: string;
|
|
35
|
+
/**
|
|
36
|
+
* How permissions resolve: 'owner' (default) uses the owner's RBAC permissions; 'token_policies' uses the policies/groups this token is associated with
|
|
37
|
+
*
|
|
38
|
+
* * `owner` - Owner permissions
|
|
39
|
+
* * `token_policies` - Token policies
|
|
40
|
+
*/
|
|
41
|
+
mode?: PlatformApiKeyModeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* RbacPolicy IDs to associate with this token (mode=token_policies)
|
|
44
|
+
*/
|
|
45
|
+
policies_to_add?: Array<number>;
|
|
46
|
+
/**
|
|
47
|
+
* RbacPolicy IDs to disassociate from this token (mode=token_policies)
|
|
48
|
+
*/
|
|
49
|
+
policies_to_remove?: Array<number>;
|
|
50
|
+
/**
|
|
51
|
+
* RbacGroup IDs to associate with this token (mode=token_policies)
|
|
52
|
+
*/
|
|
53
|
+
groups_to_add?: Array<number>;
|
|
54
|
+
/**
|
|
55
|
+
* RbacGroup IDs to disassociate from this token (mode=token_policies)
|
|
56
|
+
*/
|
|
57
|
+
groups_to_remove?: Array<number>;
|
|
34
58
|
};
|
|
35
59
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* * `owner` - Owner permissions
|
|
7
|
+
* * `token_policies` - Token policies
|
|
8
|
+
*/
|
|
9
|
+
export enum PlatformApiKeyModeEnum {
|
|
10
|
+
OWNER = 'owner',
|
|
11
|
+
TOKEN_POLICIES = 'token_policies',
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { PlatformApiToken_groups_to_add_Permission } from './PlatformApiToken_groups_to_add_Permission';
|
|
6
|
+
import type { PlatformApiToken_groups_to_remove_Permission } from './PlatformApiToken_groups_to_remove_Permission';
|
|
7
|
+
import type { PlatformApiToken_mode_Permission } from './PlatformApiToken_mode_Permission';
|
|
8
|
+
import type { PlatformApiToken_policies_to_add_Permission } from './PlatformApiToken_policies_to_add_Permission';
|
|
9
|
+
import type { PlatformApiToken_policies_to_remove_Permission } from './PlatformApiToken_policies_to_remove_Permission';
|
|
10
|
+
export type PlatformApiTokenFieldPermissions = {
|
|
11
|
+
mode: PlatformApiToken_mode_Permission;
|
|
12
|
+
policies_to_add: PlatformApiToken_policies_to_add_Permission;
|
|
13
|
+
policies_to_remove: PlatformApiToken_policies_to_remove_Permission;
|
|
14
|
+
groups_to_add: PlatformApiToken_groups_to_add_Permission;
|
|
15
|
+
groups_to_remove: PlatformApiToken_groups_to_remove_Permission;
|
|
16
|
+
};
|
|
17
|
+
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
import type { ModeEnum } from './ModeEnum';
|
|
6
5
|
import type { PeriodEnum } from './PeriodEnum';
|
|
6
|
+
import type { StripeCheckoutSessionRequestModeEnum } from './StripeCheckoutSessionRequestModeEnum';
|
|
7
7
|
/**
|
|
8
8
|
* Serializer for Stripe checkout session creation requests.
|
|
9
9
|
*/
|
|
@@ -35,7 +35,7 @@ export type StripeCheckoutSessionRequest = {
|
|
|
35
35
|
* * `payment` - payment
|
|
36
36
|
* * `setup` - setup
|
|
37
37
|
*/
|
|
38
|
-
mode?:
|
|
38
|
+
mode?: StripeCheckoutSessionRequestModeEnum;
|
|
39
39
|
/**
|
|
40
40
|
* Billing period
|
|
41
41
|
*
|