sendblue 3.6.1 → 3.8.0

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 (129) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/env.js +2 -2
  11. package/internal/utils/env.js.map +1 -1
  12. package/internal/utils/env.mjs +2 -2
  13. package/internal/utils/env.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/index.d.mts +2 -0
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +2 -0
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js +5 -1
  20. package/resources/index.js.map +1 -1
  21. package/resources/index.mjs +2 -0
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/lines/call-forwarding.d.mts +94 -0
  24. package/resources/lines/call-forwarding.d.mts.map +1 -0
  25. package/resources/lines/call-forwarding.d.ts +94 -0
  26. package/resources/lines/call-forwarding.d.ts.map +1 -0
  27. package/resources/lines/call-forwarding.js +65 -0
  28. package/resources/lines/call-forwarding.js.map +1 -0
  29. package/resources/lines/call-forwarding.mjs +61 -0
  30. package/resources/lines/call-forwarding.mjs.map +1 -0
  31. package/resources/lines/index.d.mts +3 -0
  32. package/resources/lines/index.d.mts.map +1 -0
  33. package/resources/lines/index.d.ts +3 -0
  34. package/resources/lines/index.d.ts.map +1 -0
  35. package/resources/lines/index.js +9 -0
  36. package/resources/lines/index.js.map +1 -0
  37. package/resources/lines/index.mjs +4 -0
  38. package/resources/lines/index.mjs.map +1 -0
  39. package/resources/lines/lines.d.mts +10 -0
  40. package/resources/lines/lines.d.mts.map +1 -0
  41. package/resources/lines/lines.d.ts +10 -0
  42. package/resources/lines/lines.d.ts.map +1 -0
  43. package/resources/lines/lines.js +17 -0
  44. package/resources/lines/lines.js.map +1 -0
  45. package/resources/lines/lines.mjs +12 -0
  46. package/resources/lines/lines.mjs.map +1 -0
  47. package/resources/lines.d.mts +2 -0
  48. package/resources/lines.d.mts.map +1 -0
  49. package/resources/lines.d.ts +2 -0
  50. package/resources/lines.d.ts.map +1 -0
  51. package/resources/lines.js +6 -0
  52. package/resources/lines.js.map +1 -0
  53. package/resources/lines.mjs +3 -0
  54. package/resources/lines.mjs.map +1 -0
  55. package/resources/v2/index.d.mts +3 -0
  56. package/resources/v2/index.d.mts.map +1 -0
  57. package/resources/v2/index.d.ts +3 -0
  58. package/resources/v2/index.d.ts.map +1 -0
  59. package/resources/v2/index.js +9 -0
  60. package/resources/v2/index.js.map +1 -0
  61. package/resources/v2/index.mjs +4 -0
  62. package/resources/v2/index.mjs.map +1 -0
  63. package/resources/v2/totp/index.d.mts +3 -0
  64. package/resources/v2/totp/index.d.mts.map +1 -0
  65. package/resources/v2/totp/index.d.ts +3 -0
  66. package/resources/v2/totp/index.d.ts.map +1 -0
  67. package/resources/v2/totp/index.js +9 -0
  68. package/resources/v2/totp/index.js.map +1 -0
  69. package/resources/v2/totp/index.mjs +4 -0
  70. package/resources/v2/totp/index.mjs.map +1 -0
  71. package/resources/v2/totp/secrets.d.mts +159 -0
  72. package/resources/v2/totp/secrets.d.mts.map +1 -0
  73. package/resources/v2/totp/secrets.d.ts +159 -0
  74. package/resources/v2/totp/secrets.d.ts.map +1 -0
  75. package/resources/v2/totp/secrets.js +57 -0
  76. package/resources/v2/totp/secrets.js.map +1 -0
  77. package/resources/v2/totp/secrets.mjs +53 -0
  78. package/resources/v2/totp/secrets.mjs.map +1 -0
  79. package/resources/v2/totp/totp.d.mts +39 -0
  80. package/resources/v2/totp/totp.d.mts.map +1 -0
  81. package/resources/v2/totp/totp.d.ts +39 -0
  82. package/resources/v2/totp/totp.d.ts.map +1 -0
  83. package/resources/v2/totp/totp.js +35 -0
  84. package/resources/v2/totp/totp.js.map +1 -0
  85. package/resources/v2/totp/totp.mjs +30 -0
  86. package/resources/v2/totp/totp.mjs.map +1 -0
  87. package/resources/v2/totp.d.mts +2 -0
  88. package/resources/v2/totp.d.mts.map +1 -0
  89. package/resources/v2/totp.d.ts +2 -0
  90. package/resources/v2/totp.d.ts.map +1 -0
  91. package/resources/v2/totp.js +6 -0
  92. package/resources/v2/totp.js.map +1 -0
  93. package/resources/v2/totp.mjs +3 -0
  94. package/resources/v2/totp.mjs.map +1 -0
  95. package/resources/v2/v2.d.mts +10 -0
  96. package/resources/v2/v2.d.mts.map +1 -0
  97. package/resources/v2/v2.d.ts +10 -0
  98. package/resources/v2/v2.d.ts.map +1 -0
  99. package/resources/v2/v2.js +17 -0
  100. package/resources/v2/v2.js.map +1 -0
  101. package/resources/v2/v2.mjs +12 -0
  102. package/resources/v2/v2.mjs.map +1 -0
  103. package/resources/v2.d.mts +2 -0
  104. package/resources/v2.d.mts.map +1 -0
  105. package/resources/v2.d.ts +2 -0
  106. package/resources/v2.d.ts.map +1 -0
  107. package/resources/v2.js +6 -0
  108. package/resources/v2.js.map +1 -0
  109. package/resources/v2.mjs +3 -0
  110. package/resources/v2.mjs.map +1 -0
  111. package/src/client.ts +10 -0
  112. package/src/internal/utils/env.ts +2 -2
  113. package/src/resources/index.ts +2 -0
  114. package/src/resources/lines/call-forwarding.ts +122 -0
  115. package/src/resources/lines/index.ts +10 -0
  116. package/src/resources/lines/lines.ts +27 -0
  117. package/src/resources/lines.ts +3 -0
  118. package/src/resources/v2/index.ts +4 -0
  119. package/src/resources/v2/totp/index.ts +10 -0
  120. package/src/resources/v2/totp/secrets.ts +204 -0
  121. package/src/resources/v2/totp/totp.ts +64 -0
  122. package/src/resources/v2/totp.ts +3 -0
  123. package/src/resources/v2/v2.ts +15 -0
  124. package/src/resources/v2.ts +3 -0
  125. package/src/version.ts +1 -1
  126. package/version.d.mts +1 -1
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
  129. package/version.mjs +1 -1
@@ -0,0 +1,159 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import { APIPromise } from "../../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../../internal/request-options.mjs";
4
+ /**
5
+ * Store and retrieve TOTP codes for agent 2FA (authenticator app replacement)
6
+ */
7
+ export declare class Secrets extends APIResource {
8
+ /**
9
+ * Store an encrypted TOTP secret for your account. Agents can use this instead of
10
+ * a phone-based authenticator app.
11
+ *
12
+ * Provide either:
13
+ *
14
+ * - A `uri` (the `otpauth://` URI from a QR code scan), which auto-populates all
15
+ * fields
16
+ * - A base32 `secret` with optional `label`, `issuer`, `algorithm`, `digits`, and
17
+ * `period`
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const secret = await client.v2.totp.secrets.create();
22
+ * ```
23
+ */
24
+ create(body: SecretCreateParams, options?: RequestOptions): APIPromise<SecretCreateResponse>;
25
+ /**
26
+ * List all stored TOTP secrets for the account. The encrypted secret values are
27
+ * never returned.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const secrets = await client.v2.totp.secrets.list();
32
+ * ```
33
+ */
34
+ list(options?: RequestOptions): APIPromise<SecretListResponse>;
35
+ /**
36
+ * Permanently delete a stored TOTP secret.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const secret = await client.v2.totp.secrets.delete(
41
+ * '550e8400-e29b-41d4-a716-446655440000',
42
+ * );
43
+ * ```
44
+ */
45
+ delete(secretID: string, options?: RequestOptions): APIPromise<SecretDeleteResponse>;
46
+ }
47
+ export interface SecretCreateResponse {
48
+ status?: string;
49
+ totp_secret?: SecretCreateResponse.TotpSecret;
50
+ }
51
+ export declare namespace SecretCreateResponse {
52
+ interface TotpSecret {
53
+ /**
54
+ * Unique identifier for this TOTP secret
55
+ */
56
+ id?: string;
57
+ /**
58
+ * Hash algorithm used
59
+ */
60
+ algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
61
+ created_at?: string;
62
+ /**
63
+ * Code length (6 or 8)
64
+ */
65
+ digits?: number;
66
+ /**
67
+ * Service name
68
+ */
69
+ issuer?: string | null;
70
+ /**
71
+ * Human-readable label
72
+ */
73
+ label?: string;
74
+ /**
75
+ * Rotation period in seconds
76
+ */
77
+ period?: number;
78
+ /**
79
+ * Base32 secret — only returned on creation, never on list/get
80
+ */
81
+ secret?: string;
82
+ }
83
+ }
84
+ export interface SecretListResponse {
85
+ status?: string;
86
+ totp_secrets?: Array<SecretListResponse.TotpSecret>;
87
+ }
88
+ export declare namespace SecretListResponse {
89
+ interface TotpSecret {
90
+ /**
91
+ * Unique identifier for this TOTP secret
92
+ */
93
+ id?: string;
94
+ /**
95
+ * Hash algorithm used
96
+ */
97
+ algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
98
+ created_at?: string;
99
+ /**
100
+ * Code length (6 or 8)
101
+ */
102
+ digits?: number;
103
+ /**
104
+ * Service name
105
+ */
106
+ issuer?: string | null;
107
+ /**
108
+ * Human-readable label
109
+ */
110
+ label?: string;
111
+ /**
112
+ * Rotation period in seconds
113
+ */
114
+ period?: number;
115
+ /**
116
+ * Base32 secret — only returned on creation, never on list/get
117
+ */
118
+ secret?: string;
119
+ }
120
+ }
121
+ export interface SecretDeleteResponse {
122
+ status?: string;
123
+ }
124
+ export interface SecretCreateParams {
125
+ /**
126
+ * Hash algorithm
127
+ */
128
+ algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
129
+ /**
130
+ * Code length
131
+ */
132
+ digits?: 6 | 8;
133
+ /**
134
+ * Service name (e.g. "GitHub", "Google")
135
+ */
136
+ issuer?: string;
137
+ /**
138
+ * Human-readable label for this secret (e.g. "GitHub - agent@example.com").
139
+ * Required unless `uri` is provided.
140
+ */
141
+ label?: string;
142
+ /**
143
+ * Rotation period in seconds
144
+ */
145
+ period?: number;
146
+ /**
147
+ * Base32-encoded TOTP secret. Omit to auto-generate one.
148
+ */
149
+ secret?: string;
150
+ /**
151
+ * Full `otpauth://totp/...` URI from a QR code. Overrides all other fields if
152
+ * provided.
153
+ */
154
+ uri?: string;
155
+ }
156
+ export declare namespace Secrets {
157
+ export { type SecretCreateResponse as SecretCreateResponse, type SecretListResponse as SecretListResponse, type SecretDeleteResponse as SecretDeleteResponse, type SecretCreateParams as SecretCreateParams, };
158
+ }
159
+ //# sourceMappingURL=secrets.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secrets.d.mts","sourceRoot":"","sources":["../../../src/resources/v2/totp/secrets.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,159 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import { APIPromise } from "../../../core/api-promise.js";
3
+ import { RequestOptions } from "../../../internal/request-options.js";
4
+ /**
5
+ * Store and retrieve TOTP codes for agent 2FA (authenticator app replacement)
6
+ */
7
+ export declare class Secrets extends APIResource {
8
+ /**
9
+ * Store an encrypted TOTP secret for your account. Agents can use this instead of
10
+ * a phone-based authenticator app.
11
+ *
12
+ * Provide either:
13
+ *
14
+ * - A `uri` (the `otpauth://` URI from a QR code scan), which auto-populates all
15
+ * fields
16
+ * - A base32 `secret` with optional `label`, `issuer`, `algorithm`, `digits`, and
17
+ * `period`
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const secret = await client.v2.totp.secrets.create();
22
+ * ```
23
+ */
24
+ create(body: SecretCreateParams, options?: RequestOptions): APIPromise<SecretCreateResponse>;
25
+ /**
26
+ * List all stored TOTP secrets for the account. The encrypted secret values are
27
+ * never returned.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const secrets = await client.v2.totp.secrets.list();
32
+ * ```
33
+ */
34
+ list(options?: RequestOptions): APIPromise<SecretListResponse>;
35
+ /**
36
+ * Permanently delete a stored TOTP secret.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const secret = await client.v2.totp.secrets.delete(
41
+ * '550e8400-e29b-41d4-a716-446655440000',
42
+ * );
43
+ * ```
44
+ */
45
+ delete(secretID: string, options?: RequestOptions): APIPromise<SecretDeleteResponse>;
46
+ }
47
+ export interface SecretCreateResponse {
48
+ status?: string;
49
+ totp_secret?: SecretCreateResponse.TotpSecret;
50
+ }
51
+ export declare namespace SecretCreateResponse {
52
+ interface TotpSecret {
53
+ /**
54
+ * Unique identifier for this TOTP secret
55
+ */
56
+ id?: string;
57
+ /**
58
+ * Hash algorithm used
59
+ */
60
+ algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
61
+ created_at?: string;
62
+ /**
63
+ * Code length (6 or 8)
64
+ */
65
+ digits?: number;
66
+ /**
67
+ * Service name
68
+ */
69
+ issuer?: string | null;
70
+ /**
71
+ * Human-readable label
72
+ */
73
+ label?: string;
74
+ /**
75
+ * Rotation period in seconds
76
+ */
77
+ period?: number;
78
+ /**
79
+ * Base32 secret — only returned on creation, never on list/get
80
+ */
81
+ secret?: string;
82
+ }
83
+ }
84
+ export interface SecretListResponse {
85
+ status?: string;
86
+ totp_secrets?: Array<SecretListResponse.TotpSecret>;
87
+ }
88
+ export declare namespace SecretListResponse {
89
+ interface TotpSecret {
90
+ /**
91
+ * Unique identifier for this TOTP secret
92
+ */
93
+ id?: string;
94
+ /**
95
+ * Hash algorithm used
96
+ */
97
+ algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
98
+ created_at?: string;
99
+ /**
100
+ * Code length (6 or 8)
101
+ */
102
+ digits?: number;
103
+ /**
104
+ * Service name
105
+ */
106
+ issuer?: string | null;
107
+ /**
108
+ * Human-readable label
109
+ */
110
+ label?: string;
111
+ /**
112
+ * Rotation period in seconds
113
+ */
114
+ period?: number;
115
+ /**
116
+ * Base32 secret — only returned on creation, never on list/get
117
+ */
118
+ secret?: string;
119
+ }
120
+ }
121
+ export interface SecretDeleteResponse {
122
+ status?: string;
123
+ }
124
+ export interface SecretCreateParams {
125
+ /**
126
+ * Hash algorithm
127
+ */
128
+ algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
129
+ /**
130
+ * Code length
131
+ */
132
+ digits?: 6 | 8;
133
+ /**
134
+ * Service name (e.g. "GitHub", "Google")
135
+ */
136
+ issuer?: string;
137
+ /**
138
+ * Human-readable label for this secret (e.g. "GitHub - agent@example.com").
139
+ * Required unless `uri` is provided.
140
+ */
141
+ label?: string;
142
+ /**
143
+ * Rotation period in seconds
144
+ */
145
+ period?: number;
146
+ /**
147
+ * Base32-encoded TOTP secret. Omit to auto-generate one.
148
+ */
149
+ secret?: string;
150
+ /**
151
+ * Full `otpauth://totp/...` URI from a QR code. Overrides all other fields if
152
+ * provided.
153
+ */
154
+ uri?: string;
155
+ }
156
+ export declare namespace Secrets {
157
+ export { type SecretCreateResponse as SecretCreateResponse, type SecretListResponse as SecretListResponse, type SecretDeleteResponse as SecretDeleteResponse, type SecretCreateParams as SecretCreateParams, };
158
+ }
159
+ //# sourceMappingURL=secrets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../../src/resources/v2/totp/secrets.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Secrets = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const path_1 = require("../../../internal/utils/path.js");
7
+ /**
8
+ * Store and retrieve TOTP codes for agent 2FA (authenticator app replacement)
9
+ */
10
+ class Secrets extends resource_1.APIResource {
11
+ /**
12
+ * Store an encrypted TOTP secret for your account. Agents can use this instead of
13
+ * a phone-based authenticator app.
14
+ *
15
+ * Provide either:
16
+ *
17
+ * - A `uri` (the `otpauth://` URI from a QR code scan), which auto-populates all
18
+ * fields
19
+ * - A base32 `secret` with optional `label`, `issuer`, `algorithm`, `digits`, and
20
+ * `period`
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const secret = await client.v2.totp.secrets.create();
25
+ * ```
26
+ */
27
+ create(body, options) {
28
+ return this._client.post('/api/v2/totp/secrets', { body, ...options });
29
+ }
30
+ /**
31
+ * List all stored TOTP secrets for the account. The encrypted secret values are
32
+ * never returned.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const secrets = await client.v2.totp.secrets.list();
37
+ * ```
38
+ */
39
+ list(options) {
40
+ return this._client.get('/api/v2/totp/secrets', options);
41
+ }
42
+ /**
43
+ * Permanently delete a stored TOTP secret.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const secret = await client.v2.totp.secrets.delete(
48
+ * '550e8400-e29b-41d4-a716-446655440000',
49
+ * );
50
+ * ```
51
+ */
52
+ delete(secretID, options) {
53
+ return this._client.delete((0, path_1.path) `/api/v2/totp/secrets/${secretID}`, options);
54
+ }
55
+ }
56
+ exports.Secrets = Secrets;
57
+ //# sourceMappingURL=secrets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../../src/resources/v2/totp/secrets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,wBAAwB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AA/CD,0BA+CC"}
@@ -0,0 +1,53 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { path } from "../../../internal/utils/path.mjs";
4
+ /**
5
+ * Store and retrieve TOTP codes for agent 2FA (authenticator app replacement)
6
+ */
7
+ export class Secrets extends APIResource {
8
+ /**
9
+ * Store an encrypted TOTP secret for your account. Agents can use this instead of
10
+ * a phone-based authenticator app.
11
+ *
12
+ * Provide either:
13
+ *
14
+ * - A `uri` (the `otpauth://` URI from a QR code scan), which auto-populates all
15
+ * fields
16
+ * - A base32 `secret` with optional `label`, `issuer`, `algorithm`, `digits`, and
17
+ * `period`
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const secret = await client.v2.totp.secrets.create();
22
+ * ```
23
+ */
24
+ create(body, options) {
25
+ return this._client.post('/api/v2/totp/secrets', { body, ...options });
26
+ }
27
+ /**
28
+ * List all stored TOTP secrets for the account. The encrypted secret values are
29
+ * never returned.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const secrets = await client.v2.totp.secrets.list();
34
+ * ```
35
+ */
36
+ list(options) {
37
+ return this._client.get('/api/v2/totp/secrets', options);
38
+ }
39
+ /**
40
+ * Permanently delete a stored TOTP secret.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const secret = await client.v2.totp.secrets.delete(
45
+ * '550e8400-e29b-41d4-a716-446655440000',
46
+ * );
47
+ * ```
48
+ */
49
+ delete(secretID, options) {
50
+ return this._client.delete(path `/api/v2/totp/secrets/${secretID}`, options);
51
+ }
52
+ }
53
+ //# sourceMappingURL=secrets.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secrets.mjs","sourceRoot":"","sources":["../../../src/resources/v2/totp/secrets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF"}
@@ -0,0 +1,39 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import * as SecretsAPI from "./secrets.mjs";
3
+ import { SecretCreateParams, SecretCreateResponse, SecretDeleteResponse, SecretListResponse, Secrets } from "./secrets.mjs";
4
+ import { APIPromise } from "../../../core/api-promise.mjs";
5
+ import { RequestOptions } from "../../../internal/request-options.mjs";
6
+ /**
7
+ * Store and retrieve TOTP codes for agent 2FA (authenticator app replacement)
8
+ */
9
+ export declare class Totp extends APIResource {
10
+ secrets: SecretsAPI.Secrets;
11
+ /**
12
+ * Generate the current 6- or 8-digit TOTP code for a stored secret, along with how
13
+ * many seconds remain until it rotates.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const response = await client.v2.totp.getCode(
18
+ * '550e8400-e29b-41d4-a716-446655440000',
19
+ * );
20
+ * ```
21
+ */
22
+ getCode(secretID: string, options?: RequestOptions): APIPromise<TotpGetCodeResponse>;
23
+ }
24
+ export interface TotpGetCodeResponse {
25
+ /**
26
+ * The current TOTP code
27
+ */
28
+ code?: string;
29
+ /**
30
+ * Seconds until this code rotates
31
+ */
32
+ expires_in?: number;
33
+ status?: string;
34
+ }
35
+ export declare namespace Totp {
36
+ export { type TotpGetCodeResponse as TotpGetCodeResponse };
37
+ export { Secrets as Secrets, type SecretCreateResponse as SecretCreateResponse, type SecretListResponse as SecretListResponse, type SecretDeleteResponse as SecretDeleteResponse, type SecretCreateParams as SecretCreateParams, };
38
+ }
39
+ //# sourceMappingURL=totp.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totp.d.mts","sourceRoot":"","sources":["../../../src/resources/v2/totp/totp.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,OAAO,EACR;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;OAUG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGrF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;IAE3D,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,39 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import * as SecretsAPI from "./secrets.js";
3
+ import { SecretCreateParams, SecretCreateResponse, SecretDeleteResponse, SecretListResponse, Secrets } from "./secrets.js";
4
+ import { APIPromise } from "../../../core/api-promise.js";
5
+ import { RequestOptions } from "../../../internal/request-options.js";
6
+ /**
7
+ * Store and retrieve TOTP codes for agent 2FA (authenticator app replacement)
8
+ */
9
+ export declare class Totp extends APIResource {
10
+ secrets: SecretsAPI.Secrets;
11
+ /**
12
+ * Generate the current 6- or 8-digit TOTP code for a stored secret, along with how
13
+ * many seconds remain until it rotates.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const response = await client.v2.totp.getCode(
18
+ * '550e8400-e29b-41d4-a716-446655440000',
19
+ * );
20
+ * ```
21
+ */
22
+ getCode(secretID: string, options?: RequestOptions): APIPromise<TotpGetCodeResponse>;
23
+ }
24
+ export interface TotpGetCodeResponse {
25
+ /**
26
+ * The current TOTP code
27
+ */
28
+ code?: string;
29
+ /**
30
+ * Seconds until this code rotates
31
+ */
32
+ expires_in?: number;
33
+ status?: string;
34
+ }
35
+ export declare namespace Totp {
36
+ export { type TotpGetCodeResponse as TotpGetCodeResponse };
37
+ export { Secrets as Secrets, type SecretCreateResponse as SecretCreateResponse, type SecretListResponse as SecretListResponse, type SecretDeleteResponse as SecretDeleteResponse, type SecretCreateParams as SecretCreateParams, };
38
+ }
39
+ //# sourceMappingURL=totp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totp.d.ts","sourceRoot":"","sources":["../../../src/resources/v2/totp/totp.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,OAAO,EACR;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;OAUG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGrF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;IAE3D,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Totp = void 0;
5
+ const tslib_1 = require("../../../internal/tslib.js");
6
+ const resource_1 = require("../../../core/resource.js");
7
+ const SecretsAPI = tslib_1.__importStar(require("./secrets.js"));
8
+ const secrets_1 = require("./secrets.js");
9
+ const path_1 = require("../../../internal/utils/path.js");
10
+ /**
11
+ * Store and retrieve TOTP codes for agent 2FA (authenticator app replacement)
12
+ */
13
+ class Totp extends resource_1.APIResource {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.secrets = new SecretsAPI.Secrets(this._client);
17
+ }
18
+ /**
19
+ * Generate the current 6- or 8-digit TOTP code for a stored secret, along with how
20
+ * many seconds remain until it rotates.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const response = await client.v2.totp.getCode(
25
+ * '550e8400-e29b-41d4-a716-446655440000',
26
+ * );
27
+ * ```
28
+ */
29
+ getCode(secretID, options) {
30
+ return this._client.get((0, path_1.path) `/api/v2/totp/code/${secretID}`, options);
31
+ }
32
+ }
33
+ exports.Totp = Totp;
34
+ Totp.Secrets = secrets_1.Secrets;
35
+ //# sourceMappingURL=totp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totp.js","sourceRoot":"","sources":["../../../src/resources/v2/totp/totp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,iEAAwC;AACxC,0CAMmB;AAGnB,0DAAoD;AAEpD;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBrE,CAAC;IAdC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,QAAgB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AAjBD,oBAiBC;AAgBD,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC"}
@@ -0,0 +1,30 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import * as SecretsAPI from "./secrets.mjs";
4
+ import { Secrets, } from "./secrets.mjs";
5
+ import { path } from "../../../internal/utils/path.mjs";
6
+ /**
7
+ * Store and retrieve TOTP codes for agent 2FA (authenticator app replacement)
8
+ */
9
+ export class Totp extends APIResource {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.secrets = new SecretsAPI.Secrets(this._client);
13
+ }
14
+ /**
15
+ * Generate the current 6- or 8-digit TOTP code for a stored secret, along with how
16
+ * many seconds remain until it rotates.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const response = await client.v2.totp.getCode(
21
+ * '550e8400-e29b-41d4-a716-446655440000',
22
+ * );
23
+ * ```
24
+ */
25
+ getCode(secretID, options) {
26
+ return this._client.get(path `/api/v2/totp/code/${secretID}`, options);
27
+ }
28
+ }
29
+ Totp.Secrets = Secrets;
30
+ //# sourceMappingURL=totp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totp.mjs","sourceRoot":"","sources":["../../../src/resources/v2/totp/totp.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAKL,OAAO,GACR;OAGM,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBrE,CAAC;IAdC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,QAAgB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AAgBD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./totp/index.mjs";
2
+ //# sourceMappingURL=totp.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totp.d.mts","sourceRoot":"","sources":["../../src/resources/v2/totp.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./totp/index.js";
2
+ //# sourceMappingURL=totp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totp.d.ts","sourceRoot":"","sources":["../../src/resources/v2/totp.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./totp/index.js"), exports);
6
+ //# sourceMappingURL=totp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totp.js","sourceRoot":"","sources":["../../src/resources/v2/totp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./totp/index.mjs";
3
+ //# sourceMappingURL=totp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totp.mjs","sourceRoot":"","sources":["../../src/resources/v2/totp.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as TotpAPI from "./totp/totp.mjs";
3
+ import { Totp, TotpGetCodeResponse } from "./totp/totp.mjs";
4
+ export declare class V2 extends APIResource {
5
+ totp: TotpAPI.Totp;
6
+ }
7
+ export declare namespace V2 {
8
+ export { Totp as Totp, type TotpGetCodeResponse as TotpGetCodeResponse };
9
+ }
10
+ //# sourceMappingURL=v2.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2.d.mts","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,mBAAmB,EAAE;AAEpC,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;CACrD;AAID,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC1E"}