@deeprelay/sdk 0.1.0 → 0.1.2

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.
Files changed (71) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +13 -2
  3. package/dist/apis/BillingApi.d.ts +53 -0
  4. package/dist/apis/BillingApi.js +141 -0
  5. package/dist/apis/InferenceApi.d.ts +18 -0
  6. package/dist/apis/InferenceApi.js +51 -0
  7. package/dist/esm/apis/BillingApi.d.ts +53 -0
  8. package/dist/esm/apis/BillingApi.js +141 -0
  9. package/dist/esm/apis/InferenceApi.d.ts +18 -0
  10. package/dist/esm/apis/InferenceApi.js +51 -0
  11. package/dist/esm/models/InferencePreflight.d.ts +92 -0
  12. package/dist/esm/models/InferencePreflight.js +86 -0
  13. package/dist/esm/models/RefereeStatus.d.ts +79 -0
  14. package/dist/esm/models/RefereeStatus.js +70 -0
  15. package/dist/esm/models/Referral.d.ts +94 -0
  16. package/dist/esm/models/Referral.js +82 -0
  17. package/dist/esm/models/SubscriptionCheckoutRequest.d.ts +45 -0
  18. package/dist/esm/models/SubscriptionCheckoutRequest.js +45 -0
  19. package/dist/esm/models/SubscriptionCheckoutSession.d.ts +45 -0
  20. package/dist/esm/models/SubscriptionCheckoutSession.js +52 -0
  21. package/dist/esm/models/SubscriptionPortalRequest.d.ts +32 -0
  22. package/dist/esm/models/SubscriptionPortalRequest.js +41 -0
  23. package/dist/esm/models/SubscriptionPortalSession.d.ts +32 -0
  24. package/dist/esm/models/SubscriptionPortalSession.js +43 -0
  25. package/dist/esm/models/VideoJob.d.ts +6 -0
  26. package/dist/esm/models/VideoJob.js +2 -0
  27. package/dist/esm/models/index.d.ts +7 -0
  28. package/dist/esm/models/index.js +7 -0
  29. package/dist/esm/runtime.js +1 -1
  30. package/dist/models/InferencePreflight.d.ts +92 -0
  31. package/dist/models/InferencePreflight.js +94 -0
  32. package/dist/models/RefereeStatus.d.ts +79 -0
  33. package/dist/models/RefereeStatus.js +78 -0
  34. package/dist/models/Referral.d.ts +94 -0
  35. package/dist/models/Referral.js +89 -0
  36. package/dist/models/SubscriptionCheckoutRequest.d.ts +45 -0
  37. package/dist/models/SubscriptionCheckoutRequest.js +52 -0
  38. package/dist/models/SubscriptionCheckoutSession.d.ts +45 -0
  39. package/dist/models/SubscriptionCheckoutSession.js +59 -0
  40. package/dist/models/SubscriptionPortalRequest.d.ts +32 -0
  41. package/dist/models/SubscriptionPortalRequest.js +48 -0
  42. package/dist/models/SubscriptionPortalSession.d.ts +32 -0
  43. package/dist/models/SubscriptionPortalSession.js +50 -0
  44. package/dist/models/VideoJob.d.ts +6 -0
  45. package/dist/models/VideoJob.js +2 -0
  46. package/dist/models/index.d.ts +7 -0
  47. package/dist/models/index.js +7 -0
  48. package/dist/runtime.js +1 -1
  49. package/docs/BillingApi.md +220 -0
  50. package/docs/InferenceApi.md +74 -0
  51. package/docs/InferencePreflight.md +47 -0
  52. package/docs/RefereeStatus.md +47 -0
  53. package/docs/Referral.md +55 -0
  54. package/docs/SubscriptionCheckoutRequest.md +39 -0
  55. package/docs/SubscriptionCheckoutSession.md +38 -0
  56. package/docs/SubscriptionPortalRequest.md +35 -0
  57. package/docs/SubscriptionPortalSession.md +34 -0
  58. package/docs/VideoJob.md +2 -0
  59. package/package.json +1 -1
  60. package/src/apis/BillingApi.ts +180 -0
  61. package/src/apis/InferenceApi.ts +67 -0
  62. package/src/models/InferencePreflight.ts +147 -0
  63. package/src/models/RefereeStatus.ts +131 -0
  64. package/src/models/Referral.ts +164 -0
  65. package/src/models/SubscriptionCheckoutRequest.ts +82 -0
  66. package/src/models/SubscriptionCheckoutSession.ts +92 -0
  67. package/src/models/SubscriptionPortalRequest.ts +65 -0
  68. package/src/models/SubscriptionPortalSession.ts +66 -0
  69. package/src/models/VideoJob.ts +8 -0
  70. package/src/models/index.ts +7 -0
  71. package/src/runtime.ts +1 -1
@@ -0,0 +1,94 @@
1
+ /**
2
+ * deeprelay Public Developer API
3
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@deeprelay.ai
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { RefereeStatus } from './RefereeStatus';
13
+ /**
14
+ * The organization's referral-program view: its invite link, the program terms, its referrer stats, and (only when it was itself referred) its referee progress. Amounts are USD cents.
15
+ *
16
+ * @export
17
+ * @interface Referral
18
+ */
19
+ export interface Referral {
20
+ /**
21
+ * The organization's shareable referral code, e.g. `GPU-7KQ2-M4XP`.
22
+ * @type {string}
23
+ * @memberof Referral
24
+ */
25
+ code: string;
26
+ /**
27
+ * The ready-to-share invite link, `{site}/r/{code}`.
28
+ * @type {string}
29
+ * @memberof Referral
30
+ */
31
+ inviteUrl: string;
32
+ /**
33
+ * Friends who signed up through the link but have not yet reached the spend gate.
34
+ * @type {number}
35
+ * @memberof Referral
36
+ */
37
+ pending: number;
38
+ /**
39
+ * Friends past the spend gate whose reward is inside the chargeback hold.
40
+ * @type {number}
41
+ * @memberof Referral
42
+ */
43
+ qualified: number;
44
+ /**
45
+ * Referrals that have paid out.
46
+ * @type {number}
47
+ * @memberof Referral
48
+ */
49
+ settled: number;
50
+ /**
51
+ * Total credit paid to this organization as a referrer.
52
+ * @type {number}
53
+ * @memberof Referral
54
+ */
55
+ earnedCents: number;
56
+ /**
57
+ * Credit paid to the referrer per settled referral.
58
+ * @type {number}
59
+ * @memberof Referral
60
+ */
61
+ rewardCents: number;
62
+ /**
63
+ * Credit paid to the referred friend per settled referral.
64
+ * @type {number}
65
+ * @memberof Referral
66
+ */
67
+ refereeRewardCents: number;
68
+ /**
69
+ * The friend's cumulative inference spend that qualifies a referral.
70
+ * @type {number}
71
+ * @memberof Referral
72
+ */
73
+ qualifySpendCents: number;
74
+ /**
75
+ * Days between qualification and payout (chargeback hold).
76
+ * @type {number}
77
+ * @memberof Referral
78
+ */
79
+ holdDays: number;
80
+ /**
81
+ *
82
+ * @type {RefereeStatus}
83
+ * @memberof Referral
84
+ */
85
+ referred?: RefereeStatus;
86
+ }
87
+ /**
88
+ * Check if a given object implements the Referral interface.
89
+ */
90
+ export declare function instanceOfReferral(value: object): value is Referral;
91
+ export declare function ReferralFromJSON(json: any): Referral;
92
+ export declare function ReferralFromJSONTyped(json: any, ignoreDiscriminator: boolean): Referral;
93
+ export declare function ReferralToJSON(json: any): Referral;
94
+ export declare function ReferralToJSONTyped(value?: Referral | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * deeprelay Public Developer API
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@deeprelay.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { RefereeStatusFromJSON, RefereeStatusToJSON, } from './RefereeStatus';
15
+ /**
16
+ * Check if a given object implements the Referral interface.
17
+ */
18
+ export function instanceOfReferral(value) {
19
+ if (!('code' in value) || value['code'] === undefined)
20
+ return false;
21
+ if ((!('inviteUrl' in value) && !('invite_url' in value)) || (value['inviteUrl'] === undefined && value['invite_url'] === undefined))
22
+ return false;
23
+ if (!('pending' in value) || value['pending'] === undefined)
24
+ return false;
25
+ if (!('qualified' in value) || value['qualified'] === undefined)
26
+ return false;
27
+ if (!('settled' in value) || value['settled'] === undefined)
28
+ return false;
29
+ if ((!('earnedCents' in value) && !('earned_cents' in value)) || (value['earnedCents'] === undefined && value['earned_cents'] === undefined))
30
+ return false;
31
+ if ((!('rewardCents' in value) && !('reward_cents' in value)) || (value['rewardCents'] === undefined && value['reward_cents'] === undefined))
32
+ return false;
33
+ if ((!('refereeRewardCents' in value) && !('referee_reward_cents' in value)) || (value['refereeRewardCents'] === undefined && value['referee_reward_cents'] === undefined))
34
+ return false;
35
+ if ((!('qualifySpendCents' in value) && !('qualify_spend_cents' in value)) || (value['qualifySpendCents'] === undefined && value['qualify_spend_cents'] === undefined))
36
+ return false;
37
+ if ((!('holdDays' in value) && !('hold_days' in value)) || (value['holdDays'] === undefined && value['hold_days'] === undefined))
38
+ return false;
39
+ return true;
40
+ }
41
+ export function ReferralFromJSON(json) {
42
+ return ReferralFromJSONTyped(json, false);
43
+ }
44
+ export function ReferralFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'code': json['code'],
50
+ 'inviteUrl': json['invite_url'],
51
+ 'pending': json['pending'],
52
+ 'qualified': json['qualified'],
53
+ 'settled': json['settled'],
54
+ 'earnedCents': json['earned_cents'],
55
+ 'rewardCents': json['reward_cents'],
56
+ 'refereeRewardCents': json['referee_reward_cents'],
57
+ 'qualifySpendCents': json['qualify_spend_cents'],
58
+ 'holdDays': json['hold_days'],
59
+ 'referred': json['referred'] == null ? undefined : RefereeStatusFromJSON(json['referred']),
60
+ };
61
+ }
62
+ export function ReferralToJSON(json) {
63
+ return ReferralToJSONTyped(json, false);
64
+ }
65
+ export function ReferralToJSONTyped(value, ignoreDiscriminator = false) {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'code': value['code'],
71
+ 'invite_url': value['inviteUrl'],
72
+ 'pending': value['pending'],
73
+ 'qualified': value['qualified'],
74
+ 'settled': value['settled'],
75
+ 'earned_cents': value['earnedCents'],
76
+ 'reward_cents': value['rewardCents'],
77
+ 'referee_reward_cents': value['refereeRewardCents'],
78
+ 'qualify_spend_cents': value['qualifySpendCents'],
79
+ 'hold_days': value['holdDays'],
80
+ 'referred': RefereeStatusToJSON(value['referred']),
81
+ };
82
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * deeprelay Public Developer API
3
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@deeprelay.ai
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Optional overrides for a checkout mint. Every field has a deployment default, so an empty body is the normal call.
14
+ *
15
+ * @export
16
+ * @interface SubscriptionCheckoutRequest
17
+ */
18
+ export interface SubscriptionCheckoutRequest {
19
+ /**
20
+ * Where the provider returns after a completed payment. Defaults to the deployment's configured URL.
21
+ * @type {string}
22
+ * @memberof SubscriptionCheckoutRequest
23
+ */
24
+ successUrl?: string;
25
+ /**
26
+ * Where the provider returns if checkout is abandoned. Defaults to the deployment's configured URL.
27
+ * @type {string}
28
+ * @memberof SubscriptionCheckoutRequest
29
+ */
30
+ cancelUrl?: string;
31
+ /**
32
+ * Pins the plan the client displayed. An unknown key is a 400 rather than a silent purchase of a different tier.
33
+ * @type {string}
34
+ * @memberof SubscriptionCheckoutRequest
35
+ */
36
+ planKey?: string;
37
+ }
38
+ /**
39
+ * Check if a given object implements the SubscriptionCheckoutRequest interface.
40
+ */
41
+ export declare function instanceOfSubscriptionCheckoutRequest(value: object): value is SubscriptionCheckoutRequest;
42
+ export declare function SubscriptionCheckoutRequestFromJSON(json: any): SubscriptionCheckoutRequest;
43
+ export declare function SubscriptionCheckoutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionCheckoutRequest;
44
+ export declare function SubscriptionCheckoutRequestToJSON(json: any): SubscriptionCheckoutRequest;
45
+ export declare function SubscriptionCheckoutRequestToJSONTyped(value?: SubscriptionCheckoutRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * deeprelay Public Developer API
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@deeprelay.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the SubscriptionCheckoutRequest interface.
16
+ */
17
+ export function instanceOfSubscriptionCheckoutRequest(value) {
18
+ return true;
19
+ }
20
+ export function SubscriptionCheckoutRequestFromJSON(json) {
21
+ return SubscriptionCheckoutRequestFromJSONTyped(json, false);
22
+ }
23
+ export function SubscriptionCheckoutRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'successUrl': json['success_url'] == null ? undefined : json['success_url'],
29
+ 'cancelUrl': json['cancel_url'] == null ? undefined : json['cancel_url'],
30
+ 'planKey': json['plan_key'] == null ? undefined : json['plan_key'],
31
+ };
32
+ }
33
+ export function SubscriptionCheckoutRequestToJSON(json) {
34
+ return SubscriptionCheckoutRequestToJSONTyped(json, false);
35
+ }
36
+ export function SubscriptionCheckoutRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'success_url': value['successUrl'],
42
+ 'cancel_url': value['cancelUrl'],
43
+ 'plan_key': value['planKey'],
44
+ };
45
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * deeprelay Public Developer API
3
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@deeprelay.ai
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SubscriptionPlan } from './SubscriptionPlan';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SubscriptionCheckoutSession
17
+ */
18
+ export interface SubscriptionCheckoutSession {
19
+ /**
20
+ * The hosted page the customer must open to pay.
21
+ * @type {string}
22
+ * @memberof SubscriptionCheckoutSession
23
+ */
24
+ checkoutUrl: string;
25
+ /**
26
+ * Checkout session id, for support correlation.
27
+ * @type {string}
28
+ * @memberof SubscriptionCheckoutSession
29
+ */
30
+ sessionId: string;
31
+ /**
32
+ *
33
+ * @type {SubscriptionPlan}
34
+ * @memberof SubscriptionCheckoutSession
35
+ */
36
+ plan: SubscriptionPlan;
37
+ }
38
+ /**
39
+ * Check if a given object implements the SubscriptionCheckoutSession interface.
40
+ */
41
+ export declare function instanceOfSubscriptionCheckoutSession(value: object): value is SubscriptionCheckoutSession;
42
+ export declare function SubscriptionCheckoutSessionFromJSON(json: any): SubscriptionCheckoutSession;
43
+ export declare function SubscriptionCheckoutSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionCheckoutSession;
44
+ export declare function SubscriptionCheckoutSessionToJSON(json: any): SubscriptionCheckoutSession;
45
+ export declare function SubscriptionCheckoutSessionToJSONTyped(value?: SubscriptionCheckoutSession | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * deeprelay Public Developer API
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@deeprelay.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SubscriptionPlanFromJSON, SubscriptionPlanToJSON, } from './SubscriptionPlan';
15
+ /**
16
+ * Check if a given object implements the SubscriptionCheckoutSession interface.
17
+ */
18
+ export function instanceOfSubscriptionCheckoutSession(value) {
19
+ if ((!('checkoutUrl' in value) && !('checkout_url' in value)) || (value['checkoutUrl'] === undefined && value['checkout_url'] === undefined))
20
+ return false;
21
+ if ((!('sessionId' in value) && !('session_id' in value)) || (value['sessionId'] === undefined && value['session_id'] === undefined))
22
+ return false;
23
+ if (!('plan' in value) || value['plan'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function SubscriptionCheckoutSessionFromJSON(json) {
28
+ return SubscriptionCheckoutSessionFromJSONTyped(json, false);
29
+ }
30
+ export function SubscriptionCheckoutSessionFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'checkoutUrl': json['checkout_url'],
36
+ 'sessionId': json['session_id'],
37
+ 'plan': SubscriptionPlanFromJSON(json['plan']),
38
+ };
39
+ }
40
+ export function SubscriptionCheckoutSessionToJSON(json) {
41
+ return SubscriptionCheckoutSessionToJSONTyped(json, false);
42
+ }
43
+ export function SubscriptionCheckoutSessionToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'checkout_url': value['checkoutUrl'],
49
+ 'session_id': value['sessionId'],
50
+ 'plan': SubscriptionPlanToJSON(value['plan']),
51
+ };
52
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * deeprelay Public Developer API
3
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@deeprelay.ai
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Optional overrides for a billing-portal mint.
14
+ * @export
15
+ * @interface SubscriptionPortalRequest
16
+ */
17
+ export interface SubscriptionPortalRequest {
18
+ /**
19
+ * Where the provider returns when the customer leaves the portal. Defaults to the deployment's configured URL.
20
+ * @type {string}
21
+ * @memberof SubscriptionPortalRequest
22
+ */
23
+ returnUrl?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SubscriptionPortalRequest interface.
27
+ */
28
+ export declare function instanceOfSubscriptionPortalRequest(value: object): value is SubscriptionPortalRequest;
29
+ export declare function SubscriptionPortalRequestFromJSON(json: any): SubscriptionPortalRequest;
30
+ export declare function SubscriptionPortalRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPortalRequest;
31
+ export declare function SubscriptionPortalRequestToJSON(json: any): SubscriptionPortalRequest;
32
+ export declare function SubscriptionPortalRequestToJSONTyped(value?: SubscriptionPortalRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * deeprelay Public Developer API
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@deeprelay.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the SubscriptionPortalRequest interface.
16
+ */
17
+ export function instanceOfSubscriptionPortalRequest(value) {
18
+ return true;
19
+ }
20
+ export function SubscriptionPortalRequestFromJSON(json) {
21
+ return SubscriptionPortalRequestFromJSONTyped(json, false);
22
+ }
23
+ export function SubscriptionPortalRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'returnUrl': json['return_url'] == null ? undefined : json['return_url'],
29
+ };
30
+ }
31
+ export function SubscriptionPortalRequestToJSON(json) {
32
+ return SubscriptionPortalRequestToJSONTyped(json, false);
33
+ }
34
+ export function SubscriptionPortalRequestToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'return_url': value['returnUrl'],
40
+ };
41
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * deeprelay Public Developer API
3
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@deeprelay.ai
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SubscriptionPortalSession
16
+ */
17
+ export interface SubscriptionPortalSession {
18
+ /**
19
+ * The hosted billing portal — cancel, resume, change payment method, download invoices.
20
+ * @type {string}
21
+ * @memberof SubscriptionPortalSession
22
+ */
23
+ portalUrl: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SubscriptionPortalSession interface.
27
+ */
28
+ export declare function instanceOfSubscriptionPortalSession(value: object): value is SubscriptionPortalSession;
29
+ export declare function SubscriptionPortalSessionFromJSON(json: any): SubscriptionPortalSession;
30
+ export declare function SubscriptionPortalSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPortalSession;
31
+ export declare function SubscriptionPortalSessionToJSON(json: any): SubscriptionPortalSession;
32
+ export declare function SubscriptionPortalSessionToJSONTyped(value?: SubscriptionPortalSession | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * deeprelay Public Developer API
5
+ * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@deeprelay.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the SubscriptionPortalSession interface.
16
+ */
17
+ export function instanceOfSubscriptionPortalSession(value) {
18
+ if ((!('portalUrl' in value) && !('portal_url' in value)) || (value['portalUrl'] === undefined && value['portal_url'] === undefined))
19
+ return false;
20
+ return true;
21
+ }
22
+ export function SubscriptionPortalSessionFromJSON(json) {
23
+ return SubscriptionPortalSessionFromJSONTyped(json, false);
24
+ }
25
+ export function SubscriptionPortalSessionFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'portalUrl': json['portal_url'],
31
+ };
32
+ }
33
+ export function SubscriptionPortalSessionToJSON(json) {
34
+ return SubscriptionPortalSessionToJSONTyped(json, false);
35
+ }
36
+ export function SubscriptionPortalSessionToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'portal_url': value['portalUrl'],
42
+ };
43
+ }
@@ -81,6 +81,12 @@ export interface VideoJob {
81
81
  * @memberof VideoJob
82
82
  */
83
83
  error?: string;
84
+ /**
85
+ * Human-readable reason behind `error`, when the upstream supplied one. `error` classifies the failure, `error_message` explains it (for example a requested duration outside the model's supported range). Sanitized before storage; only ever present alongside `error`.
86
+ * @type {string}
87
+ * @memberof VideoJob
88
+ */
89
+ errorMessage?: string;
84
90
  /**
85
91
  * Final billed cost in cents; present once the job completes (failed/cancelled jobs are never billed).
86
92
  * @type {number}
@@ -67,6 +67,7 @@ export function VideoJobFromJSONTyped(json, ignoreDiscriminator) {
67
67
  'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
68
68
  'expiresAt': json['expires_at'] == null ? undefined : json['expires_at'],
69
69
  'error': json['error'] == null ? undefined : json['error'],
70
+ 'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
70
71
  'costCents': json['cost_cents'] == null ? undefined : json['cost_cents'],
71
72
  };
72
73
  }
@@ -89,6 +90,7 @@ export function VideoJobToJSONTyped(value, ignoreDiscriminator = false) {
89
90
  'completed_at': value['completedAt'],
90
91
  'expires_at': value['expiresAt'],
91
92
  'error': value['error'],
93
+ 'error_message': value['errorMessage'],
92
94
  'cost_cents': value['costCents'],
93
95
  };
94
96
  }
@@ -16,6 +16,7 @@ export * from './ImagesGenerationsRequest';
16
16
  export * from './ImagesResponse';
17
17
  export * from './ImagesResponseDataInner';
18
18
  export * from './ImagesResponseUsage';
19
+ export * from './InferencePreflight';
19
20
  export * from './ListDeposits200Response';
20
21
  export * from './Model';
21
22
  export * from './ModelList';
@@ -29,10 +30,16 @@ export * from './OperationError';
29
30
  export * from './OperationResult';
30
31
  export * from './PeakWindow';
31
32
  export * from './Problem';
33
+ export * from './RefereeStatus';
34
+ export * from './Referral';
32
35
  export * from './SpendingLimit';
33
36
  export * from './StreamOptions';
34
37
  export * from './Subscription';
38
+ export * from './SubscriptionCheckoutRequest';
39
+ export * from './SubscriptionCheckoutSession';
35
40
  export * from './SubscriptionPlan';
41
+ export * from './SubscriptionPortalRequest';
42
+ export * from './SubscriptionPortalSession';
36
43
  export * from './SubscriptionPrice';
37
44
  export * from './SubscriptionQuota';
38
45
  export * from './SubscriptionUsage';
@@ -18,6 +18,7 @@ export * from './ImagesGenerationsRequest';
18
18
  export * from './ImagesResponse';
19
19
  export * from './ImagesResponseDataInner';
20
20
  export * from './ImagesResponseUsage';
21
+ export * from './InferencePreflight';
21
22
  export * from './ListDeposits200Response';
22
23
  export * from './Model';
23
24
  export * from './ModelList';
@@ -31,10 +32,16 @@ export * from './OperationError';
31
32
  export * from './OperationResult';
32
33
  export * from './PeakWindow';
33
34
  export * from './Problem';
35
+ export * from './RefereeStatus';
36
+ export * from './Referral';
34
37
  export * from './SpendingLimit';
35
38
  export * from './StreamOptions';
36
39
  export * from './Subscription';
40
+ export * from './SubscriptionCheckoutRequest';
41
+ export * from './SubscriptionCheckoutSession';
37
42
  export * from './SubscriptionPlan';
43
+ export * from './SubscriptionPortalRequest';
44
+ export * from './SubscriptionPortalSession';
38
45
  export * from './SubscriptionPrice';
39
46
  export * from './SubscriptionQuota';
40
47
  export * from './SubscriptionUsage';
@@ -61,7 +61,7 @@ export class Configuration {
61
61
  return undefined;
62
62
  }
63
63
  get headers() {
64
- return Object.assign({ 'User-Agent': 'deeprelay-sdk-ts/0.1.0' }, this.configuration.headers);
64
+ return Object.assign({ 'User-Agent': 'deeprelay-sdk-ts/0.1.2' }, this.configuration.headers);
65
65
  }
66
66
  get credentials() {
67
67
  return this.configuration.credentials;