@api7/portal-sdk 0.0.2 → 0.0.4
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/api_product.d.ts +1 -1
- package/dist/api_product.d.ts.map +1 -1
- package/dist/application.d.ts +1 -1
- package/dist/application.d.ts.map +1 -1
- package/dist/browser.cjs +1 -1
- package/dist/browser.d.ts +2 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +11 -11
- package/dist/credential.d.ts +2 -2
- package/dist/credential.d.ts.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +12 -12
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/transformers.gen.d.ts +6 -7
- package/dist/generated/transformers.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +259 -171
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -21
- package/dist/miscellaneous.d.ts +1 -1
- package/dist/miscellaneous.d.ts.map +1 -1
- package/dist/subscription-CftzKQlG.cjs +7 -0
- package/dist/{subscription-DPb2gn6N.js → subscription-Dn1fYfR8.js} +185 -186
- package/dist/subscription.d.ts +1 -1
- package/dist/subscription.d.ts.map +1 -1
- package/dist/unstable/typing.d.ts +2 -0
- package/dist/unstable/typing.d.ts.map +1 -0
- package/dist/unstable-types.cjs +1 -0
- package/dist/unstable-types.js +1 -0
- package/package.json +4 -1
- package/dist/subscription-ukRySaBq.cjs +0 -7
|
@@ -35,28 +35,12 @@ export declare const SubscriptionStatus: {
|
|
|
35
35
|
readonly SUBSCRIBED: "subscribed";
|
|
36
36
|
};
|
|
37
37
|
export type SubscriptionStatus = typeof SubscriptionStatus[keyof typeof SubscriptionStatus];
|
|
38
|
-
/**
|
|
39
|
-
* The status of the developer.
|
|
40
|
-
* - pending: The user is pending approval.
|
|
41
|
-
* - active: The user had been approved.
|
|
42
|
-
*/
|
|
43
|
-
export declare const DeveloperStatus: {
|
|
44
|
-
readonly PENDING: "pending";
|
|
45
|
-
readonly ACTIVE: "active";
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* The status of the developer.
|
|
49
|
-
* - pending: The user is pending approval.
|
|
50
|
-
* - active: The user had been approved.
|
|
51
|
-
*/
|
|
52
|
-
export type DeveloperStatus = typeof DeveloperStatus[keyof typeof DeveloperStatus];
|
|
53
38
|
export type Developer = {
|
|
54
39
|
id: Id;
|
|
55
40
|
/**
|
|
56
41
|
* Developer name.
|
|
57
42
|
*/
|
|
58
43
|
name: string;
|
|
59
|
-
status: DeveloperStatus;
|
|
60
44
|
last_active_at?: DateTime;
|
|
61
45
|
created_at: DateTime;
|
|
62
46
|
updated_at: DateTime;
|
|
@@ -141,6 +125,10 @@ export type ApiProduct = ({
|
|
|
141
125
|
* An array of raw OpenAPI specifications. It is only returned when getting an API product.
|
|
142
126
|
*/
|
|
143
127
|
raw_openapis?: Array<string>;
|
|
128
|
+
/**
|
|
129
|
+
* API count. It is only returned when listing API products.
|
|
130
|
+
*/
|
|
131
|
+
api_count?: number;
|
|
144
132
|
} & ResourceBasics) | ({
|
|
145
133
|
/**
|
|
146
134
|
* Type of API product.
|
|
@@ -206,6 +194,18 @@ export type CreateDeveloperApplicationReq = {
|
|
|
206
194
|
desc?: Description;
|
|
207
195
|
labels?: LabelsMap;
|
|
208
196
|
};
|
|
197
|
+
/**
|
|
198
|
+
* The type of the credential.
|
|
199
|
+
*/
|
|
200
|
+
export declare const CredentialType: {
|
|
201
|
+
readonly KEY_AUTH: "key-auth";
|
|
202
|
+
readonly BASIC_AUTH: "basic-auth";
|
|
203
|
+
readonly OAUTH: "oauth";
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* The type of the credential.
|
|
207
|
+
*/
|
|
208
|
+
export type CredentialType = typeof CredentialType[keyof typeof CredentialType];
|
|
209
209
|
export type ApplicationCredentialBasicsCommon = {
|
|
210
210
|
application_id: Id;
|
|
211
211
|
application_name: Name;
|
|
@@ -213,23 +213,49 @@ export type ApplicationCredentialBasicsCommon = {
|
|
|
213
213
|
labels?: LabelsMap;
|
|
214
214
|
};
|
|
215
215
|
/**
|
|
216
|
-
* The
|
|
216
|
+
* The application credential response.
|
|
217
|
+
*/
|
|
218
|
+
export type ApplicationCredentialBasics = KeyAuthApplicationCredentialBasics | BasicAuthApplicationCredentialBasics | OAuthApplicationCredentialBasics;
|
|
219
|
+
/**
|
|
220
|
+
* Key Auth application credential response.
|
|
217
221
|
*/
|
|
218
|
-
export type
|
|
222
|
+
export type KeyAuthApplicationCredentialBasics = ApplicationCredentialBasicsCommon & {
|
|
223
|
+
/**
|
|
224
|
+
* The credential type.
|
|
225
|
+
*/
|
|
226
|
+
type: 'key-auth';
|
|
219
227
|
name: Name;
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
228
|
+
/**
|
|
229
|
+
* Key Auth configuration.
|
|
230
|
+
*/
|
|
231
|
+
'key-auth'?: {
|
|
232
|
+
[key: string]: unknown;
|
|
224
233
|
};
|
|
225
|
-
}
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Basic Auth application credential response.
|
|
237
|
+
*/
|
|
238
|
+
export type BasicAuthApplicationCredentialBasics = ApplicationCredentialBasicsCommon & {
|
|
239
|
+
/**
|
|
240
|
+
* The credential type.
|
|
241
|
+
*/
|
|
242
|
+
type: 'basic-auth';
|
|
226
243
|
name: Name;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
244
|
+
/**
|
|
245
|
+
* Basic Auth configuration.
|
|
246
|
+
*/
|
|
247
|
+
'basic-auth'?: {
|
|
248
|
+
[key: string]: unknown;
|
|
231
249
|
};
|
|
232
|
-
}
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* OAuth application credential response.
|
|
253
|
+
*/
|
|
254
|
+
export type OAuthApplicationCredentialBasics = ApplicationCredentialBasicsCommon & {
|
|
255
|
+
/**
|
|
256
|
+
* The credential type.
|
|
257
|
+
*/
|
|
258
|
+
type: 'oauth';
|
|
233
259
|
oauth: {
|
|
234
260
|
/**
|
|
235
261
|
* The DCR provider ID.
|
|
@@ -249,7 +275,7 @@ export type ApplicationCredentialBasics = (ApplicationCredentialBasicsCommon & {
|
|
|
249
275
|
*/
|
|
250
276
|
redirect_uris?: Array<string>;
|
|
251
277
|
};
|
|
252
|
-
}
|
|
278
|
+
};
|
|
253
279
|
/**
|
|
254
280
|
* The application credential.
|
|
255
281
|
*/
|
|
@@ -261,26 +287,49 @@ export type CreateApplicationCredentialReqCommon = {
|
|
|
261
287
|
/**
|
|
262
288
|
* Create an application credential request.
|
|
263
289
|
*/
|
|
264
|
-
export type CreateApplicationCredentialReq =
|
|
290
|
+
export type CreateApplicationCredentialReq = CreateKeyAuthApplicationCredentialReq | CreateBasicAuthApplicationCredentialReq | CreateOAuthApplicationCredentialReq;
|
|
291
|
+
/**
|
|
292
|
+
* Create a Key Auth application credential request.
|
|
293
|
+
*/
|
|
294
|
+
export type CreateKeyAuthApplicationCredentialReq = CreateApplicationCredentialReqCommon & {
|
|
295
|
+
/**
|
|
296
|
+
* The credential type.
|
|
297
|
+
*/
|
|
298
|
+
type: 'key-auth';
|
|
265
299
|
name: Name;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
300
|
+
/**
|
|
301
|
+
* Key Auth configuration. If null, key will be auto-generated.
|
|
302
|
+
*/
|
|
303
|
+
'key-auth'?: {} | null;
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Create a Basic Auth application credential request.
|
|
307
|
+
*/
|
|
308
|
+
export type CreateBasicAuthApplicationCredentialReq = CreateApplicationCredentialReqCommon & {
|
|
309
|
+
/**
|
|
310
|
+
* The credential type.
|
|
311
|
+
*/
|
|
312
|
+
type: 'basic-auth';
|
|
270
313
|
name: Name;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
password: string;
|
|
281
|
-
};
|
|
314
|
+
'basic-auth': {
|
|
315
|
+
/**
|
|
316
|
+
* Username.
|
|
317
|
+
*/
|
|
318
|
+
username: string;
|
|
319
|
+
/**
|
|
320
|
+
* User password.
|
|
321
|
+
*/
|
|
322
|
+
password: string;
|
|
282
323
|
};
|
|
283
|
-
}
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* Create an OAuth application credential request.
|
|
327
|
+
*/
|
|
328
|
+
export type CreateOAuthApplicationCredentialReq = CreateApplicationCredentialReqCommon & {
|
|
329
|
+
/**
|
|
330
|
+
* The credential type.
|
|
331
|
+
*/
|
|
332
|
+
type: 'oauth';
|
|
284
333
|
oauth: {
|
|
285
334
|
/**
|
|
286
335
|
* The DCR provider ID.
|
|
@@ -291,18 +340,34 @@ export type CreateApplicationCredentialReq = (CreateApplicationCredentialReqComm
|
|
|
291
340
|
*/
|
|
292
341
|
redirect_uris?: Array<string>;
|
|
293
342
|
};
|
|
294
|
-
}
|
|
343
|
+
};
|
|
295
344
|
/**
|
|
296
345
|
* Update an application credential request.
|
|
297
346
|
*/
|
|
298
|
-
export type UpdateApplicationCredentialReq =
|
|
347
|
+
export type UpdateApplicationCredentialReq = UpdateApplicationCredentialBasicsReq | UpdateOAuthApplicationCredentialReq;
|
|
348
|
+
/**
|
|
349
|
+
* Update a application credential basics request.
|
|
350
|
+
*/
|
|
351
|
+
export type UpdateApplicationCredentialBasicsReq = {
|
|
352
|
+
/**
|
|
353
|
+
* The credential type.
|
|
354
|
+
*/
|
|
355
|
+
type: 'key-auth' | 'basic-auth';
|
|
299
356
|
name: Name;
|
|
300
357
|
desc?: Description;
|
|
301
358
|
labels?: LabelsMap;
|
|
302
|
-
}
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Update an OAuth application credential request.
|
|
362
|
+
*/
|
|
363
|
+
export type UpdateOAuthApplicationCredentialReq = {
|
|
364
|
+
/**
|
|
365
|
+
* The credential type.
|
|
366
|
+
*/
|
|
367
|
+
type: 'oauth';
|
|
303
368
|
desc?: Description;
|
|
304
369
|
labels?: LabelsMap;
|
|
305
|
-
oauth
|
|
370
|
+
oauth?: {
|
|
306
371
|
/**
|
|
307
372
|
* The redirect URIs.
|
|
308
373
|
*/
|
|
@@ -312,11 +377,31 @@ export type UpdateApplicationCredentialReq = {
|
|
|
312
377
|
/**
|
|
313
378
|
* Regenerate an application credential request.
|
|
314
379
|
*/
|
|
315
|
-
export type RegenerateApplicationCredentialReq =
|
|
380
|
+
export type RegenerateApplicationCredentialReq = RegenerateKeyAuthApplicationCredentialReq | RegenerateBasicAuthApplicationCredentialReq;
|
|
381
|
+
/**
|
|
382
|
+
* Regenerate a Key Auth application credential request.
|
|
383
|
+
*/
|
|
384
|
+
export type RegenerateKeyAuthApplicationCredentialReq = {
|
|
385
|
+
/**
|
|
386
|
+
* The credential type.
|
|
387
|
+
*/
|
|
388
|
+
type: 'key-auth';
|
|
389
|
+
/**
|
|
390
|
+
* Key Auth configuration. If null, key will be auto-generated.
|
|
391
|
+
*/
|
|
316
392
|
'key-auth'?: {
|
|
317
393
|
[key: string]: never;
|
|
318
394
|
} | null;
|
|
319
|
-
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* Regenerate a Basic Auth application credential request.
|
|
398
|
+
*/
|
|
399
|
+
export type RegenerateBasicAuthApplicationCredentialReq = {
|
|
400
|
+
/**
|
|
401
|
+
* The credential type.
|
|
402
|
+
*/
|
|
403
|
+
type: 'basic-auth';
|
|
404
|
+
'basic-auth': {
|
|
320
405
|
/**
|
|
321
406
|
* Username.
|
|
322
407
|
*/
|
|
@@ -372,7 +457,10 @@ export type SmtpServerSettingsStatus = {
|
|
|
372
457
|
export type ApiCall = {
|
|
373
458
|
api_product_id: Id;
|
|
374
459
|
api_product_name: Name;
|
|
375
|
-
|
|
460
|
+
/**
|
|
461
|
+
* The object timestamp.
|
|
462
|
+
*/
|
|
463
|
+
hour_timestamp: number;
|
|
376
464
|
/**
|
|
377
465
|
* The number of API calls.
|
|
378
466
|
*/
|
|
@@ -409,11 +497,11 @@ export type ApiProductStatus = typeof ApiProductStatus[keyof typeof ApiProductSt
|
|
|
409
497
|
/**
|
|
410
498
|
* Page number of the listed resources. Used together with `page_size`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
411
499
|
*/
|
|
412
|
-
export type Page =
|
|
500
|
+
export type Page = number;
|
|
413
501
|
/**
|
|
414
502
|
* Number of resources listed per page. Used together with `page`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
415
503
|
*/
|
|
416
|
-
export type PageSize =
|
|
504
|
+
export type PageSize = number;
|
|
417
505
|
/**
|
|
418
506
|
* Order to list the resources by. The sorting index follows the configuration of `order_by`.
|
|
419
507
|
*/
|
|
@@ -449,9 +537,9 @@ export type ApplicationId = Id;
|
|
|
449
537
|
export type ApplicationIdInQuery = Id;
|
|
450
538
|
export type ApplicationsIds = Array<Id>;
|
|
451
539
|
/**
|
|
452
|
-
* The unique identifier of the
|
|
540
|
+
* The unique identifier of the application credential.
|
|
453
541
|
*/
|
|
454
|
-
export type
|
|
542
|
+
export type ApplicationCredentialId = Id;
|
|
455
543
|
/**
|
|
456
544
|
* The authentication method of the developer credential.
|
|
457
545
|
*/
|
|
@@ -465,11 +553,11 @@ export declare const AuthMethod: {
|
|
|
465
553
|
*/
|
|
466
554
|
export type AuthMethod = typeof AuthMethod[keyof typeof AuthMethod];
|
|
467
555
|
/**
|
|
468
|
-
* The plugin name of the
|
|
556
|
+
* The plugin name of the application credential, recommended to use `auth_method` instead.
|
|
469
557
|
*
|
|
470
558
|
* @deprecated
|
|
471
559
|
*/
|
|
472
|
-
export type
|
|
560
|
+
export type ApplicationCredentialPluginName = Name;
|
|
473
561
|
/**
|
|
474
562
|
* Index to order credentials by.
|
|
475
563
|
*/
|
|
@@ -536,11 +624,11 @@ export type ListDevelopersData = {
|
|
|
536
624
|
/**
|
|
537
625
|
* Page number of the listed resources. Used together with `page_size`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
538
626
|
*/
|
|
539
|
-
page?:
|
|
627
|
+
page?: number;
|
|
540
628
|
/**
|
|
541
629
|
* Number of resources listed per page. Used together with `page`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
542
630
|
*/
|
|
543
|
-
page_size?:
|
|
631
|
+
page_size?: number;
|
|
544
632
|
/**
|
|
545
633
|
* Order to list the resources by. The sorting index follows the configuration of `order_by`.
|
|
546
634
|
*/
|
|
@@ -564,7 +652,7 @@ export type ListDevelopersErrors = {
|
|
|
564
652
|
/**
|
|
565
653
|
* The HTTP status code of the error response.
|
|
566
654
|
*/
|
|
567
|
-
status:
|
|
655
|
+
status: 400;
|
|
568
656
|
/**
|
|
569
657
|
* The error message.
|
|
570
658
|
*/
|
|
@@ -577,7 +665,7 @@ export type ListDevelopersErrors = {
|
|
|
577
665
|
/**
|
|
578
666
|
* The HTTP status code of the error response.
|
|
579
667
|
*/
|
|
580
|
-
status:
|
|
668
|
+
status: 401;
|
|
581
669
|
/**
|
|
582
670
|
* The error message.
|
|
583
671
|
*/
|
|
@@ -613,7 +701,7 @@ export type CreateDeveloperErrors = {
|
|
|
613
701
|
/**
|
|
614
702
|
* The HTTP status code of the error response.
|
|
615
703
|
*/
|
|
616
|
-
status:
|
|
704
|
+
status: 400;
|
|
617
705
|
/**
|
|
618
706
|
* The error message.
|
|
619
707
|
*/
|
|
@@ -626,7 +714,7 @@ export type CreateDeveloperErrors = {
|
|
|
626
714
|
/**
|
|
627
715
|
* The HTTP status code of the error response.
|
|
628
716
|
*/
|
|
629
|
-
status:
|
|
717
|
+
status: 401;
|
|
630
718
|
/**
|
|
631
719
|
* The error message.
|
|
632
720
|
*/
|
|
@@ -661,7 +749,7 @@ export type DeleteDeveloperErrors = {
|
|
|
661
749
|
/**
|
|
662
750
|
* The HTTP status code of the error response.
|
|
663
751
|
*/
|
|
664
|
-
status:
|
|
752
|
+
status: 400;
|
|
665
753
|
/**
|
|
666
754
|
* The error message.
|
|
667
755
|
*/
|
|
@@ -674,7 +762,7 @@ export type DeleteDeveloperErrors = {
|
|
|
674
762
|
/**
|
|
675
763
|
* The HTTP status code of the error response.
|
|
676
764
|
*/
|
|
677
|
-
status:
|
|
765
|
+
status: 401;
|
|
678
766
|
/**
|
|
679
767
|
* The error message.
|
|
680
768
|
*/
|
|
@@ -687,7 +775,7 @@ export type DeleteDeveloperErrors = {
|
|
|
687
775
|
/**
|
|
688
776
|
* The HTTP status code of the error response.
|
|
689
777
|
*/
|
|
690
|
-
status:
|
|
778
|
+
status: 404;
|
|
691
779
|
/**
|
|
692
780
|
* The error message.
|
|
693
781
|
*/
|
|
@@ -713,11 +801,11 @@ export type ListApiProductsData = {
|
|
|
713
801
|
/**
|
|
714
802
|
* Page number of the listed resources. Used together with `page_size`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
715
803
|
*/
|
|
716
|
-
page?:
|
|
804
|
+
page?: number;
|
|
717
805
|
/**
|
|
718
806
|
* Number of resources listed per page. Used together with `page`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
719
807
|
*/
|
|
720
|
-
page_size?:
|
|
808
|
+
page_size?: number;
|
|
721
809
|
/**
|
|
722
810
|
* Order to list the resources by. The sorting index follows the configuration of `order_by`.
|
|
723
811
|
*/
|
|
@@ -743,7 +831,7 @@ export type ListApiProductsErrors = {
|
|
|
743
831
|
/**
|
|
744
832
|
* The HTTP status code of the error response.
|
|
745
833
|
*/
|
|
746
|
-
status:
|
|
834
|
+
status: 400;
|
|
747
835
|
/**
|
|
748
836
|
* The error message.
|
|
749
837
|
*/
|
|
@@ -756,7 +844,7 @@ export type ListApiProductsErrors = {
|
|
|
756
844
|
/**
|
|
757
845
|
* The HTTP status code of the error response.
|
|
758
846
|
*/
|
|
759
|
-
status:
|
|
847
|
+
status: 401;
|
|
760
848
|
/**
|
|
761
849
|
* The error message.
|
|
762
850
|
*/
|
|
@@ -797,7 +885,7 @@ export type GetApiProductErrors = {
|
|
|
797
885
|
/**
|
|
798
886
|
* The HTTP status code of the error response.
|
|
799
887
|
*/
|
|
800
|
-
status:
|
|
888
|
+
status: 400;
|
|
801
889
|
/**
|
|
802
890
|
* The error message.
|
|
803
891
|
*/
|
|
@@ -810,7 +898,7 @@ export type GetApiProductErrors = {
|
|
|
810
898
|
/**
|
|
811
899
|
* The HTTP status code of the error response.
|
|
812
900
|
*/
|
|
813
|
-
status:
|
|
901
|
+
status: 401;
|
|
814
902
|
/**
|
|
815
903
|
* The error message.
|
|
816
904
|
*/
|
|
@@ -823,7 +911,7 @@ export type GetApiProductErrors = {
|
|
|
823
911
|
/**
|
|
824
912
|
* The HTTP status code of the error response.
|
|
825
913
|
*/
|
|
826
|
-
status:
|
|
914
|
+
status: 404;
|
|
827
915
|
/**
|
|
828
916
|
* The error message.
|
|
829
917
|
*/
|
|
@@ -858,7 +946,7 @@ export type CreateApiProductSubscriptionErrors = {
|
|
|
858
946
|
/**
|
|
859
947
|
* The HTTP status code of the error response.
|
|
860
948
|
*/
|
|
861
|
-
status:
|
|
949
|
+
status: 400;
|
|
862
950
|
/**
|
|
863
951
|
* The error message.
|
|
864
952
|
*/
|
|
@@ -871,7 +959,7 @@ export type CreateApiProductSubscriptionErrors = {
|
|
|
871
959
|
/**
|
|
872
960
|
* The HTTP status code of the error response.
|
|
873
961
|
*/
|
|
874
|
-
status:
|
|
962
|
+
status: 401;
|
|
875
963
|
/**
|
|
876
964
|
* The error message.
|
|
877
965
|
*/
|
|
@@ -907,11 +995,11 @@ export type ListSubscriptionsData = {
|
|
|
907
995
|
/**
|
|
908
996
|
* Page number of the listed resources. Used together with `page_size`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
909
997
|
*/
|
|
910
|
-
page?:
|
|
998
|
+
page?: number;
|
|
911
999
|
/**
|
|
912
1000
|
* Number of resources listed per page. Used together with `page`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
913
1001
|
*/
|
|
914
|
-
page_size?:
|
|
1002
|
+
page_size?: number;
|
|
915
1003
|
/**
|
|
916
1004
|
* Order to list the resources by. The sorting index follows the configuration of `order_by`.
|
|
917
1005
|
*/
|
|
@@ -927,7 +1015,7 @@ export type ListSubscriptionsErrors = {
|
|
|
927
1015
|
/**
|
|
928
1016
|
* The HTTP status code of the error response.
|
|
929
1017
|
*/
|
|
930
|
-
status:
|
|
1018
|
+
status: 400;
|
|
931
1019
|
/**
|
|
932
1020
|
* The error message.
|
|
933
1021
|
*/
|
|
@@ -940,7 +1028,7 @@ export type ListSubscriptionsErrors = {
|
|
|
940
1028
|
/**
|
|
941
1029
|
* The HTTP status code of the error response.
|
|
942
1030
|
*/
|
|
943
|
-
status:
|
|
1031
|
+
status: 401;
|
|
944
1032
|
/**
|
|
945
1033
|
* The error message.
|
|
946
1034
|
*/
|
|
@@ -976,7 +1064,7 @@ export type CreateSubscriptionErrors = {
|
|
|
976
1064
|
/**
|
|
977
1065
|
* The HTTP status code of the error response.
|
|
978
1066
|
*/
|
|
979
|
-
status:
|
|
1067
|
+
status: 400;
|
|
980
1068
|
/**
|
|
981
1069
|
* The error message.
|
|
982
1070
|
*/
|
|
@@ -989,7 +1077,7 @@ export type CreateSubscriptionErrors = {
|
|
|
989
1077
|
/**
|
|
990
1078
|
* The HTTP status code of the error response.
|
|
991
1079
|
*/
|
|
992
|
-
status:
|
|
1080
|
+
status: 401;
|
|
993
1081
|
/**
|
|
994
1082
|
* The error message.
|
|
995
1083
|
*/
|
|
@@ -1023,7 +1111,7 @@ export type DeleteSubscriptionErrors = {
|
|
|
1023
1111
|
/**
|
|
1024
1112
|
* The HTTP status code of the error response.
|
|
1025
1113
|
*/
|
|
1026
|
-
status:
|
|
1114
|
+
status: 400;
|
|
1027
1115
|
/**
|
|
1028
1116
|
* The error message.
|
|
1029
1117
|
*/
|
|
@@ -1036,7 +1124,7 @@ export type DeleteSubscriptionErrors = {
|
|
|
1036
1124
|
/**
|
|
1037
1125
|
* The HTTP status code of the error response.
|
|
1038
1126
|
*/
|
|
1039
|
-
status:
|
|
1127
|
+
status: 401;
|
|
1040
1128
|
/**
|
|
1041
1129
|
* The error message.
|
|
1042
1130
|
*/
|
|
@@ -1049,7 +1137,7 @@ export type DeleteSubscriptionErrors = {
|
|
|
1049
1137
|
/**
|
|
1050
1138
|
* The HTTP status code of the error response.
|
|
1051
1139
|
*/
|
|
1052
|
-
status:
|
|
1140
|
+
status: 404;
|
|
1053
1141
|
/**
|
|
1054
1142
|
* The error message.
|
|
1055
1143
|
*/
|
|
@@ -1091,11 +1179,11 @@ export type ListDeveloperApplicationsData = {
|
|
|
1091
1179
|
/**
|
|
1092
1180
|
* Page number of the listed resources. Used together with `page_size`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
1093
1181
|
*/
|
|
1094
|
-
page?:
|
|
1182
|
+
page?: number;
|
|
1095
1183
|
/**
|
|
1096
1184
|
* Number of resources listed per page. Used together with `page`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
1097
1185
|
*/
|
|
1098
|
-
page_size?:
|
|
1186
|
+
page_size?: number;
|
|
1099
1187
|
/**
|
|
1100
1188
|
* Order to list the resources by. The sorting index follows the configuration of `order_by`.
|
|
1101
1189
|
*/
|
|
@@ -1111,7 +1199,7 @@ export type ListDeveloperApplicationsErrors = {
|
|
|
1111
1199
|
/**
|
|
1112
1200
|
* The HTTP status code of the error response.
|
|
1113
1201
|
*/
|
|
1114
|
-
status:
|
|
1202
|
+
status: 400;
|
|
1115
1203
|
/**
|
|
1116
1204
|
* The error message.
|
|
1117
1205
|
*/
|
|
@@ -1124,7 +1212,7 @@ export type ListDeveloperApplicationsErrors = {
|
|
|
1124
1212
|
/**
|
|
1125
1213
|
* The HTTP status code of the error response.
|
|
1126
1214
|
*/
|
|
1127
|
-
status:
|
|
1215
|
+
status: 401;
|
|
1128
1216
|
/**
|
|
1129
1217
|
* The error message.
|
|
1130
1218
|
*/
|
|
@@ -1160,7 +1248,7 @@ export type CreateDeveloperApplicationErrors = {
|
|
|
1160
1248
|
/**
|
|
1161
1249
|
* The HTTP status code of the error response.
|
|
1162
1250
|
*/
|
|
1163
|
-
status:
|
|
1251
|
+
status: 400;
|
|
1164
1252
|
/**
|
|
1165
1253
|
* The error message.
|
|
1166
1254
|
*/
|
|
@@ -1173,7 +1261,7 @@ export type CreateDeveloperApplicationErrors = {
|
|
|
1173
1261
|
/**
|
|
1174
1262
|
* The HTTP status code of the error response.
|
|
1175
1263
|
*/
|
|
1176
|
-
status:
|
|
1264
|
+
status: 401;
|
|
1177
1265
|
/**
|
|
1178
1266
|
* The error message.
|
|
1179
1267
|
*/
|
|
@@ -1205,7 +1293,7 @@ export type DeleteDeveloperApplicationErrors = {
|
|
|
1205
1293
|
/**
|
|
1206
1294
|
* The HTTP status code of the error response.
|
|
1207
1295
|
*/
|
|
1208
|
-
status:
|
|
1296
|
+
status: 400;
|
|
1209
1297
|
/**
|
|
1210
1298
|
* The error message.
|
|
1211
1299
|
*/
|
|
@@ -1218,7 +1306,7 @@ export type DeleteDeveloperApplicationErrors = {
|
|
|
1218
1306
|
/**
|
|
1219
1307
|
* The HTTP status code of the error response.
|
|
1220
1308
|
*/
|
|
1221
|
-
status:
|
|
1309
|
+
status: 401;
|
|
1222
1310
|
/**
|
|
1223
1311
|
* The error message.
|
|
1224
1312
|
*/
|
|
@@ -1231,7 +1319,7 @@ export type DeleteDeveloperApplicationErrors = {
|
|
|
1231
1319
|
/**
|
|
1232
1320
|
* The HTTP status code of the error response.
|
|
1233
1321
|
*/
|
|
1234
|
-
status:
|
|
1322
|
+
status: 404;
|
|
1235
1323
|
/**
|
|
1236
1324
|
* The error message.
|
|
1237
1325
|
*/
|
|
@@ -1266,7 +1354,7 @@ export type GetDeveloperApplicationErrors = {
|
|
|
1266
1354
|
/**
|
|
1267
1355
|
* The HTTP status code of the error response.
|
|
1268
1356
|
*/
|
|
1269
|
-
status:
|
|
1357
|
+
status: 400;
|
|
1270
1358
|
/**
|
|
1271
1359
|
* The error message.
|
|
1272
1360
|
*/
|
|
@@ -1279,7 +1367,7 @@ export type GetDeveloperApplicationErrors = {
|
|
|
1279
1367
|
/**
|
|
1280
1368
|
* The HTTP status code of the error response.
|
|
1281
1369
|
*/
|
|
1282
|
-
status:
|
|
1370
|
+
status: 401;
|
|
1283
1371
|
/**
|
|
1284
1372
|
* The error message.
|
|
1285
1373
|
*/
|
|
@@ -1292,7 +1380,7 @@ export type GetDeveloperApplicationErrors = {
|
|
|
1292
1380
|
/**
|
|
1293
1381
|
* The HTTP status code of the error response.
|
|
1294
1382
|
*/
|
|
1295
|
-
status:
|
|
1383
|
+
status: 404;
|
|
1296
1384
|
/**
|
|
1297
1385
|
* The error message.
|
|
1298
1386
|
*/
|
|
@@ -1324,7 +1412,7 @@ export type UpdateDeveloperApplicationErrors = {
|
|
|
1324
1412
|
/**
|
|
1325
1413
|
* The HTTP status code of the error response.
|
|
1326
1414
|
*/
|
|
1327
|
-
status:
|
|
1415
|
+
status: 400;
|
|
1328
1416
|
/**
|
|
1329
1417
|
* The error message.
|
|
1330
1418
|
*/
|
|
@@ -1337,7 +1425,7 @@ export type UpdateDeveloperApplicationErrors = {
|
|
|
1337
1425
|
/**
|
|
1338
1426
|
* The HTTP status code of the error response.
|
|
1339
1427
|
*/
|
|
1340
|
-
status:
|
|
1428
|
+
status: 401;
|
|
1341
1429
|
/**
|
|
1342
1430
|
* The error message.
|
|
1343
1431
|
*/
|
|
@@ -1350,7 +1438,7 @@ export type UpdateDeveloperApplicationErrors = {
|
|
|
1350
1438
|
/**
|
|
1351
1439
|
* The HTTP status code of the error response.
|
|
1352
1440
|
*/
|
|
1353
|
-
status:
|
|
1441
|
+
status: 404;
|
|
1354
1442
|
/**
|
|
1355
1443
|
* The error message.
|
|
1356
1444
|
*/
|
|
@@ -1366,7 +1454,7 @@ export type UpdateDeveloperApplicationResponses = {
|
|
|
1366
1454
|
200: DeveloperApplication;
|
|
1367
1455
|
};
|
|
1368
1456
|
export type UpdateDeveloperApplicationResponse = UpdateDeveloperApplicationResponses[keyof UpdateDeveloperApplicationResponses];
|
|
1369
|
-
export type
|
|
1457
|
+
export type ListApplicationCredentialsData = {
|
|
1370
1458
|
body?: never;
|
|
1371
1459
|
path: {
|
|
1372
1460
|
application_id: Id;
|
|
@@ -1377,7 +1465,7 @@ export type ListDeveloperCredentialsData = {
|
|
|
1377
1465
|
*/
|
|
1378
1466
|
auth_method?: 'key-auth' | 'basic-auth' | 'oauth';
|
|
1379
1467
|
/**
|
|
1380
|
-
* The plugin name of the
|
|
1468
|
+
* The plugin name of the application credential, recommended to use `auth_method` instead.
|
|
1381
1469
|
*
|
|
1382
1470
|
* @deprecated
|
|
1383
1471
|
*/
|
|
@@ -1385,11 +1473,11 @@ export type ListDeveloperCredentialsData = {
|
|
|
1385
1473
|
/**
|
|
1386
1474
|
* Page number of the listed resources. Used together with `page_size`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
1387
1475
|
*/
|
|
1388
|
-
page?:
|
|
1476
|
+
page?: number;
|
|
1389
1477
|
/**
|
|
1390
1478
|
* Number of resources listed per page. Used together with `page`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
1391
1479
|
*/
|
|
1392
|
-
page_size?:
|
|
1480
|
+
page_size?: number;
|
|
1393
1481
|
/**
|
|
1394
1482
|
* Order to list the resources by. The sorting index follows the configuration of `order_by`.
|
|
1395
1483
|
*/
|
|
@@ -1409,7 +1497,7 @@ export type ListDeveloperCredentialsData = {
|
|
|
1409
1497
|
};
|
|
1410
1498
|
url: '/api/applications/{application_id}/credentials';
|
|
1411
1499
|
};
|
|
1412
|
-
export type
|
|
1500
|
+
export type ListApplicationCredentialsErrors = {
|
|
1413
1501
|
/**
|
|
1414
1502
|
* Bad request.
|
|
1415
1503
|
*/
|
|
@@ -1417,7 +1505,7 @@ export type ListDeveloperCredentialsErrors = {
|
|
|
1417
1505
|
/**
|
|
1418
1506
|
* The HTTP status code of the error response.
|
|
1419
1507
|
*/
|
|
1420
|
-
status:
|
|
1508
|
+
status: 400;
|
|
1421
1509
|
/**
|
|
1422
1510
|
* The error message.
|
|
1423
1511
|
*/
|
|
@@ -1430,7 +1518,7 @@ export type ListDeveloperCredentialsErrors = {
|
|
|
1430
1518
|
/**
|
|
1431
1519
|
* The HTTP status code of the error response.
|
|
1432
1520
|
*/
|
|
1433
|
-
status:
|
|
1521
|
+
status: 401;
|
|
1434
1522
|
/**
|
|
1435
1523
|
* The error message.
|
|
1436
1524
|
*/
|
|
@@ -1441,8 +1529,8 @@ export type ListDeveloperCredentialsErrors = {
|
|
|
1441
1529
|
*/
|
|
1442
1530
|
500: unknown;
|
|
1443
1531
|
};
|
|
1444
|
-
export type
|
|
1445
|
-
export type
|
|
1532
|
+
export type ListApplicationCredentialsError = ListApplicationCredentialsErrors[keyof ListApplicationCredentialsErrors];
|
|
1533
|
+
export type ListApplicationCredentialsResponses = {
|
|
1446
1534
|
200: {
|
|
1447
1535
|
/**
|
|
1448
1536
|
* An array of application credentials.
|
|
@@ -1451,8 +1539,8 @@ export type ListDeveloperCredentialsResponses = {
|
|
|
1451
1539
|
total: Total;
|
|
1452
1540
|
};
|
|
1453
1541
|
};
|
|
1454
|
-
export type
|
|
1455
|
-
export type
|
|
1542
|
+
export type ListApplicationCredentialsResponse = ListApplicationCredentialsResponses[keyof ListApplicationCredentialsResponses];
|
|
1543
|
+
export type CreateApplicationCredentialData = {
|
|
1456
1544
|
body?: CreateApplicationCredentialReq;
|
|
1457
1545
|
path: {
|
|
1458
1546
|
application_id: Id;
|
|
@@ -1460,7 +1548,7 @@ export type CreateDeveloperCredentialData = {
|
|
|
1460
1548
|
query?: never;
|
|
1461
1549
|
url: '/api/applications/{application_id}/credentials';
|
|
1462
1550
|
};
|
|
1463
|
-
export type
|
|
1551
|
+
export type CreateApplicationCredentialErrors = {
|
|
1464
1552
|
/**
|
|
1465
1553
|
* Bad request.
|
|
1466
1554
|
*/
|
|
@@ -1468,7 +1556,7 @@ export type CreateDeveloperCredentialErrors = {
|
|
|
1468
1556
|
/**
|
|
1469
1557
|
* The HTTP status code of the error response.
|
|
1470
1558
|
*/
|
|
1471
|
-
status:
|
|
1559
|
+
status: 400;
|
|
1472
1560
|
/**
|
|
1473
1561
|
* The error message.
|
|
1474
1562
|
*/
|
|
@@ -1481,7 +1569,7 @@ export type CreateDeveloperCredentialErrors = {
|
|
|
1481
1569
|
/**
|
|
1482
1570
|
* The HTTP status code of the error response.
|
|
1483
1571
|
*/
|
|
1484
|
-
status:
|
|
1572
|
+
status: 401;
|
|
1485
1573
|
/**
|
|
1486
1574
|
* The error message.
|
|
1487
1575
|
*/
|
|
@@ -1492,24 +1580,24 @@ export type CreateDeveloperCredentialErrors = {
|
|
|
1492
1580
|
*/
|
|
1493
1581
|
500: unknown;
|
|
1494
1582
|
};
|
|
1495
|
-
export type
|
|
1496
|
-
export type
|
|
1583
|
+
export type CreateApplicationCredentialError = CreateApplicationCredentialErrors[keyof CreateApplicationCredentialErrors];
|
|
1584
|
+
export type CreateApplicationCredentialResponses = {
|
|
1497
1585
|
201: ApplicationCredential;
|
|
1498
1586
|
};
|
|
1499
|
-
export type
|
|
1500
|
-
export type
|
|
1587
|
+
export type CreateApplicationCredentialResponse = CreateApplicationCredentialResponses[keyof CreateApplicationCredentialResponses];
|
|
1588
|
+
export type DeleteApplicationCredentialData = {
|
|
1501
1589
|
body?: never;
|
|
1502
1590
|
path: {
|
|
1503
1591
|
application_id: Id;
|
|
1504
1592
|
/**
|
|
1505
|
-
* The unique identifier of the
|
|
1593
|
+
* The unique identifier of the application credential.
|
|
1506
1594
|
*/
|
|
1507
1595
|
credential_id: Id;
|
|
1508
1596
|
};
|
|
1509
1597
|
query?: never;
|
|
1510
1598
|
url: '/api/applications/{application_id}/credentials/{credential_id}';
|
|
1511
1599
|
};
|
|
1512
|
-
export type
|
|
1600
|
+
export type DeleteApplicationCredentialErrors = {
|
|
1513
1601
|
/**
|
|
1514
1602
|
* Bad request.
|
|
1515
1603
|
*/
|
|
@@ -1517,7 +1605,7 @@ export type DeleteDeveloperCredentialErrors = {
|
|
|
1517
1605
|
/**
|
|
1518
1606
|
* The HTTP status code of the error response.
|
|
1519
1607
|
*/
|
|
1520
|
-
status:
|
|
1608
|
+
status: 400;
|
|
1521
1609
|
/**
|
|
1522
1610
|
* The error message.
|
|
1523
1611
|
*/
|
|
@@ -1530,7 +1618,7 @@ export type DeleteDeveloperCredentialErrors = {
|
|
|
1530
1618
|
/**
|
|
1531
1619
|
* The HTTP status code of the error response.
|
|
1532
1620
|
*/
|
|
1533
|
-
status:
|
|
1621
|
+
status: 401;
|
|
1534
1622
|
/**
|
|
1535
1623
|
* The error message.
|
|
1536
1624
|
*/
|
|
@@ -1543,7 +1631,7 @@ export type DeleteDeveloperCredentialErrors = {
|
|
|
1543
1631
|
/**
|
|
1544
1632
|
* The HTTP status code of the error response.
|
|
1545
1633
|
*/
|
|
1546
|
-
status:
|
|
1634
|
+
status: 404;
|
|
1547
1635
|
/**
|
|
1548
1636
|
* The error message.
|
|
1549
1637
|
*/
|
|
@@ -1554,27 +1642,27 @@ export type DeleteDeveloperCredentialErrors = {
|
|
|
1554
1642
|
*/
|
|
1555
1643
|
500: unknown;
|
|
1556
1644
|
};
|
|
1557
|
-
export type
|
|
1558
|
-
export type
|
|
1645
|
+
export type DeleteApplicationCredentialError = DeleteApplicationCredentialErrors[keyof DeleteApplicationCredentialErrors];
|
|
1646
|
+
export type DeleteApplicationCredentialResponses = {
|
|
1559
1647
|
/**
|
|
1560
1648
|
* The resource was deleted successfully.
|
|
1561
1649
|
*/
|
|
1562
1650
|
204: void;
|
|
1563
1651
|
};
|
|
1564
|
-
export type
|
|
1565
|
-
export type
|
|
1652
|
+
export type DeleteApplicationCredentialResponse = DeleteApplicationCredentialResponses[keyof DeleteApplicationCredentialResponses];
|
|
1653
|
+
export type GetApplicationCredentialData = {
|
|
1566
1654
|
body?: never;
|
|
1567
1655
|
path: {
|
|
1568
1656
|
application_id: Id;
|
|
1569
1657
|
/**
|
|
1570
|
-
* The unique identifier of the
|
|
1658
|
+
* The unique identifier of the application credential.
|
|
1571
1659
|
*/
|
|
1572
1660
|
credential_id: Id;
|
|
1573
1661
|
};
|
|
1574
1662
|
query?: never;
|
|
1575
1663
|
url: '/api/applications/{application_id}/credentials/{credential_id}';
|
|
1576
1664
|
};
|
|
1577
|
-
export type
|
|
1665
|
+
export type GetApplicationCredentialErrors = {
|
|
1578
1666
|
/**
|
|
1579
1667
|
* Bad request.
|
|
1580
1668
|
*/
|
|
@@ -1582,7 +1670,7 @@ export type GetDeveloperCredentialErrors = {
|
|
|
1582
1670
|
/**
|
|
1583
1671
|
* The HTTP status code of the error response.
|
|
1584
1672
|
*/
|
|
1585
|
-
status:
|
|
1673
|
+
status: 400;
|
|
1586
1674
|
/**
|
|
1587
1675
|
* The error message.
|
|
1588
1676
|
*/
|
|
@@ -1595,7 +1683,7 @@ export type GetDeveloperCredentialErrors = {
|
|
|
1595
1683
|
/**
|
|
1596
1684
|
* The HTTP status code of the error response.
|
|
1597
1685
|
*/
|
|
1598
|
-
status:
|
|
1686
|
+
status: 401;
|
|
1599
1687
|
/**
|
|
1600
1688
|
* The error message.
|
|
1601
1689
|
*/
|
|
@@ -1608,7 +1696,7 @@ export type GetDeveloperCredentialErrors = {
|
|
|
1608
1696
|
/**
|
|
1609
1697
|
* The HTTP status code of the error response.
|
|
1610
1698
|
*/
|
|
1611
|
-
status:
|
|
1699
|
+
status: 404;
|
|
1612
1700
|
/**
|
|
1613
1701
|
* The error message.
|
|
1614
1702
|
*/
|
|
@@ -1619,24 +1707,24 @@ export type GetDeveloperCredentialErrors = {
|
|
|
1619
1707
|
*/
|
|
1620
1708
|
500: unknown;
|
|
1621
1709
|
};
|
|
1622
|
-
export type
|
|
1623
|
-
export type
|
|
1710
|
+
export type GetApplicationCredentialError = GetApplicationCredentialErrors[keyof GetApplicationCredentialErrors];
|
|
1711
|
+
export type GetApplicationCredentialResponses = {
|
|
1624
1712
|
200: ApplicationCredential;
|
|
1625
1713
|
};
|
|
1626
|
-
export type
|
|
1627
|
-
export type
|
|
1714
|
+
export type GetApplicationCredentialResponse = GetApplicationCredentialResponses[keyof GetApplicationCredentialResponses];
|
|
1715
|
+
export type UpsertApplicationCredentialData = {
|
|
1628
1716
|
body?: UpdateApplicationCredentialReq;
|
|
1629
1717
|
path: {
|
|
1630
1718
|
application_id: Id;
|
|
1631
1719
|
/**
|
|
1632
|
-
* The unique identifier of the
|
|
1720
|
+
* The unique identifier of the application credential.
|
|
1633
1721
|
*/
|
|
1634
1722
|
credential_id: Id;
|
|
1635
1723
|
};
|
|
1636
1724
|
query?: never;
|
|
1637
1725
|
url: '/api/applications/{application_id}/credentials/{credential_id}';
|
|
1638
1726
|
};
|
|
1639
|
-
export type
|
|
1727
|
+
export type UpsertApplicationCredentialErrors = {
|
|
1640
1728
|
/**
|
|
1641
1729
|
* Bad request.
|
|
1642
1730
|
*/
|
|
@@ -1644,7 +1732,7 @@ export type UpsertDeveloperCredentialErrors = {
|
|
|
1644
1732
|
/**
|
|
1645
1733
|
* The HTTP status code of the error response.
|
|
1646
1734
|
*/
|
|
1647
|
-
status:
|
|
1735
|
+
status: 400;
|
|
1648
1736
|
/**
|
|
1649
1737
|
* The error message.
|
|
1650
1738
|
*/
|
|
@@ -1657,7 +1745,7 @@ export type UpsertDeveloperCredentialErrors = {
|
|
|
1657
1745
|
/**
|
|
1658
1746
|
* The HTTP status code of the error response.
|
|
1659
1747
|
*/
|
|
1660
|
-
status:
|
|
1748
|
+
status: 401;
|
|
1661
1749
|
/**
|
|
1662
1750
|
* The error message.
|
|
1663
1751
|
*/
|
|
@@ -1670,7 +1758,7 @@ export type UpsertDeveloperCredentialErrors = {
|
|
|
1670
1758
|
/**
|
|
1671
1759
|
* The HTTP status code of the error response.
|
|
1672
1760
|
*/
|
|
1673
|
-
status:
|
|
1761
|
+
status: 404;
|
|
1674
1762
|
/**
|
|
1675
1763
|
* The error message.
|
|
1676
1764
|
*/
|
|
@@ -1681,24 +1769,24 @@ export type UpsertDeveloperCredentialErrors = {
|
|
|
1681
1769
|
*/
|
|
1682
1770
|
500: unknown;
|
|
1683
1771
|
};
|
|
1684
|
-
export type
|
|
1685
|
-
export type
|
|
1772
|
+
export type UpsertApplicationCredentialError = UpsertApplicationCredentialErrors[keyof UpsertApplicationCredentialErrors];
|
|
1773
|
+
export type UpsertApplicationCredentialResponses = {
|
|
1686
1774
|
200: ApplicationCredential;
|
|
1687
1775
|
};
|
|
1688
|
-
export type
|
|
1689
|
-
export type
|
|
1776
|
+
export type UpsertApplicationCredentialResponse = UpsertApplicationCredentialResponses[keyof UpsertApplicationCredentialResponses];
|
|
1777
|
+
export type RegenerateApplicationCredentialData = {
|
|
1690
1778
|
body?: RegenerateApplicationCredentialReq;
|
|
1691
1779
|
path: {
|
|
1692
1780
|
application_id: Id;
|
|
1693
1781
|
/**
|
|
1694
|
-
* The unique identifier of the
|
|
1782
|
+
* The unique identifier of the application credential.
|
|
1695
1783
|
*/
|
|
1696
1784
|
credential_id: Id;
|
|
1697
1785
|
};
|
|
1698
1786
|
query?: never;
|
|
1699
1787
|
url: '/api/applications/{application_id}/credentials/{credential_id}/regenerate';
|
|
1700
1788
|
};
|
|
1701
|
-
export type
|
|
1789
|
+
export type RegenerateApplicationCredentialErrors = {
|
|
1702
1790
|
/**
|
|
1703
1791
|
* Bad request.
|
|
1704
1792
|
*/
|
|
@@ -1706,7 +1794,7 @@ export type RegenerateDeveloperCredentialErrors = {
|
|
|
1706
1794
|
/**
|
|
1707
1795
|
* The HTTP status code of the error response.
|
|
1708
1796
|
*/
|
|
1709
|
-
status:
|
|
1797
|
+
status: 400;
|
|
1710
1798
|
/**
|
|
1711
1799
|
* The error message.
|
|
1712
1800
|
*/
|
|
@@ -1719,7 +1807,7 @@ export type RegenerateDeveloperCredentialErrors = {
|
|
|
1719
1807
|
/**
|
|
1720
1808
|
* The HTTP status code of the error response.
|
|
1721
1809
|
*/
|
|
1722
|
-
status:
|
|
1810
|
+
status: 401;
|
|
1723
1811
|
/**
|
|
1724
1812
|
* The error message.
|
|
1725
1813
|
*/
|
|
@@ -1732,7 +1820,7 @@ export type RegenerateDeveloperCredentialErrors = {
|
|
|
1732
1820
|
/**
|
|
1733
1821
|
* The HTTP status code of the error response.
|
|
1734
1822
|
*/
|
|
1735
|
-
status:
|
|
1823
|
+
status: 404;
|
|
1736
1824
|
/**
|
|
1737
1825
|
* The error message.
|
|
1738
1826
|
*/
|
|
@@ -1743,11 +1831,11 @@ export type RegenerateDeveloperCredentialErrors = {
|
|
|
1743
1831
|
*/
|
|
1744
1832
|
500: unknown;
|
|
1745
1833
|
};
|
|
1746
|
-
export type
|
|
1747
|
-
export type
|
|
1834
|
+
export type RegenerateApplicationCredentialError = RegenerateApplicationCredentialErrors[keyof RegenerateApplicationCredentialErrors];
|
|
1835
|
+
export type RegenerateApplicationCredentialResponses = {
|
|
1748
1836
|
200: ApplicationCredential;
|
|
1749
1837
|
};
|
|
1750
|
-
export type
|
|
1838
|
+
export type RegenerateApplicationCredentialResponse = RegenerateApplicationCredentialResponses[keyof RegenerateApplicationCredentialResponses];
|
|
1751
1839
|
export type GetApiCallsData = {
|
|
1752
1840
|
body?: never;
|
|
1753
1841
|
path?: never;
|
|
@@ -1771,7 +1859,7 @@ export type GetApiCallsErrors = {
|
|
|
1771
1859
|
/**
|
|
1772
1860
|
* The HTTP status code of the error response.
|
|
1773
1861
|
*/
|
|
1774
|
-
status:
|
|
1862
|
+
status: 400;
|
|
1775
1863
|
/**
|
|
1776
1864
|
* The error message.
|
|
1777
1865
|
*/
|
|
@@ -1784,7 +1872,7 @@ export type GetApiCallsErrors = {
|
|
|
1784
1872
|
/**
|
|
1785
1873
|
* The HTTP status code of the error response.
|
|
1786
1874
|
*/
|
|
1787
|
-
status:
|
|
1875
|
+
status: 401;
|
|
1788
1876
|
/**
|
|
1789
1877
|
* The error message.
|
|
1790
1878
|
*/
|
|
@@ -1816,7 +1904,7 @@ export type ListCredentialsData = {
|
|
|
1816
1904
|
*/
|
|
1817
1905
|
auth_method?: 'key-auth' | 'basic-auth' | 'oauth';
|
|
1818
1906
|
/**
|
|
1819
|
-
* The plugin name of the
|
|
1907
|
+
* The plugin name of the application credential, recommended to use `auth_method` instead.
|
|
1820
1908
|
*
|
|
1821
1909
|
* @deprecated
|
|
1822
1910
|
*/
|
|
@@ -1824,11 +1912,11 @@ export type ListCredentialsData = {
|
|
|
1824
1912
|
/**
|
|
1825
1913
|
* Page number of the listed resources. Used together with `page_size`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
1826
1914
|
*/
|
|
1827
|
-
page?:
|
|
1915
|
+
page?: number;
|
|
1828
1916
|
/**
|
|
1829
1917
|
* Number of resources listed per page. Used together with `page`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
1830
1918
|
*/
|
|
1831
|
-
page_size?:
|
|
1919
|
+
page_size?: number;
|
|
1832
1920
|
/**
|
|
1833
1921
|
* Order to list the resources by. The sorting index follows the configuration of `order_by`.
|
|
1834
1922
|
*/
|
|
@@ -1856,7 +1944,7 @@ export type ListCredentialsErrors = {
|
|
|
1856
1944
|
/**
|
|
1857
1945
|
* The HTTP status code of the error response.
|
|
1858
1946
|
*/
|
|
1859
|
-
status:
|
|
1947
|
+
status: 400;
|
|
1860
1948
|
/**
|
|
1861
1949
|
* The error message.
|
|
1862
1950
|
*/
|
|
@@ -1869,7 +1957,7 @@ export type ListCredentialsErrors = {
|
|
|
1869
1957
|
/**
|
|
1870
1958
|
* The HTTP status code of the error response.
|
|
1871
1959
|
*/
|
|
1872
|
-
status:
|
|
1960
|
+
status: 401;
|
|
1873
1961
|
/**
|
|
1874
1962
|
* The error message.
|
|
1875
1963
|
*/
|
|
@@ -1907,7 +1995,7 @@ export type ListLabelsErrors = {
|
|
|
1907
1995
|
/**
|
|
1908
1996
|
* The HTTP status code of the error response.
|
|
1909
1997
|
*/
|
|
1910
|
-
status:
|
|
1998
|
+
status: 400;
|
|
1911
1999
|
/**
|
|
1912
2000
|
* The error message.
|
|
1913
2001
|
*/
|
|
@@ -1920,7 +2008,7 @@ export type ListLabelsErrors = {
|
|
|
1920
2008
|
/**
|
|
1921
2009
|
* The HTTP status code of the error response.
|
|
1922
2010
|
*/
|
|
1923
|
-
status:
|
|
2011
|
+
status: 401;
|
|
1924
2012
|
/**
|
|
1925
2013
|
* The error message.
|
|
1926
2014
|
*/
|
|
@@ -1950,7 +2038,7 @@ export type GetSmtpServerStatusErrors = {
|
|
|
1950
2038
|
/**
|
|
1951
2039
|
* The HTTP status code of the error response.
|
|
1952
2040
|
*/
|
|
1953
|
-
status:
|
|
2041
|
+
status: 400;
|
|
1954
2042
|
/**
|
|
1955
2043
|
* The error message.
|
|
1956
2044
|
*/
|
|
@@ -1963,7 +2051,7 @@ export type GetSmtpServerStatusErrors = {
|
|
|
1963
2051
|
/**
|
|
1964
2052
|
* The HTTP status code of the error response.
|
|
1965
2053
|
*/
|
|
1966
|
-
status:
|
|
2054
|
+
status: 401;
|
|
1967
2055
|
/**
|
|
1968
2056
|
* The error message.
|
|
1969
2057
|
*/
|
|
@@ -1993,7 +2081,7 @@ export type GetPublicAccessSettingsErrors = {
|
|
|
1993
2081
|
/**
|
|
1994
2082
|
* The HTTP status code of the error response.
|
|
1995
2083
|
*/
|
|
1996
|
-
status:
|
|
2084
|
+
status: 400;
|
|
1997
2085
|
/**
|
|
1998
2086
|
* The error message.
|
|
1999
2087
|
*/
|
|
@@ -2006,7 +2094,7 @@ export type GetPublicAccessSettingsErrors = {
|
|
|
2006
2094
|
/**
|
|
2007
2095
|
* The HTTP status code of the error response.
|
|
2008
2096
|
*/
|
|
2009
|
-
status:
|
|
2097
|
+
status: 401;
|
|
2010
2098
|
/**
|
|
2011
2099
|
* The error message.
|
|
2012
2100
|
*/
|
|
@@ -2029,11 +2117,11 @@ export type ListDcrProvidersData = {
|
|
|
2029
2117
|
/**
|
|
2030
2118
|
* Page number of the listed resources. Used together with `page_size`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
2031
2119
|
*/
|
|
2032
|
-
page?:
|
|
2120
|
+
page?: number;
|
|
2033
2121
|
/**
|
|
2034
2122
|
* Number of resources listed per page. Used together with `page`. For example, when there are 13 resources in total, if the query parameters are `page=1&page_size=10`, the GET response will show the route `total` as `13` and display 10 resources in the first page. If the query parameters are `page=2&page_size=10`, the GET response will show the route `total` as `13` and display 3 resources in the second page.
|
|
2035
2123
|
*/
|
|
2036
|
-
page_size?:
|
|
2124
|
+
page_size?: number;
|
|
2037
2125
|
/**
|
|
2038
2126
|
* Order to list the resources by. The sorting index follows the configuration of `order_by`.
|
|
2039
2127
|
*/
|
|
@@ -2057,7 +2145,7 @@ export type ListDcrProvidersErrors = {
|
|
|
2057
2145
|
/**
|
|
2058
2146
|
* The HTTP status code of the error response.
|
|
2059
2147
|
*/
|
|
2060
|
-
status:
|
|
2148
|
+
status: 400;
|
|
2061
2149
|
/**
|
|
2062
2150
|
* The error message.
|
|
2063
2151
|
*/
|
|
@@ -2070,7 +2158,7 @@ export type ListDcrProvidersErrors = {
|
|
|
2070
2158
|
/**
|
|
2071
2159
|
* The HTTP status code of the error response.
|
|
2072
2160
|
*/
|
|
2073
|
-
status:
|
|
2161
|
+
status: 401;
|
|
2074
2162
|
/**
|
|
2075
2163
|
* The error message.
|
|
2076
2164
|
*/
|