@onkernel/sdk 0.32.0 → 0.33.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 (116) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +0 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +0 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/auth/auth.d.mts +2 -2
  12. package/resources/auth/auth.d.mts.map +1 -1
  13. package/resources/auth/auth.d.ts +2 -2
  14. package/resources/auth/auth.d.ts.map +1 -1
  15. package/resources/auth/auth.js.map +1 -1
  16. package/resources/auth/auth.mjs.map +1 -1
  17. package/resources/auth/connections.d.mts +164 -59
  18. package/resources/auth/connections.d.mts.map +1 -1
  19. package/resources/auth/connections.d.ts +164 -59
  20. package/resources/auth/connections.d.ts.map +1 -1
  21. package/resources/auth/connections.js +12 -17
  22. package/resources/auth/connections.js.map +1 -1
  23. package/resources/auth/connections.mjs +12 -17
  24. package/resources/auth/connections.mjs.map +1 -1
  25. package/resources/auth/index.d.mts +1 -1
  26. package/resources/auth/index.d.mts.map +1 -1
  27. package/resources/auth/index.d.ts +1 -1
  28. package/resources/auth/index.d.ts.map +1 -1
  29. package/resources/auth/index.js.map +1 -1
  30. package/resources/auth/index.mjs.map +1 -1
  31. package/resources/credentials.d.mts +4 -0
  32. package/resources/credentials.d.mts.map +1 -1
  33. package/resources/credentials.d.ts +4 -0
  34. package/resources/credentials.d.ts.map +1 -1
  35. package/resources/index.d.mts +0 -1
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +0 -1
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +1 -3
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +0 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/src/client.ts +0 -5
  44. package/src/resources/auth/auth.ts +0 -2
  45. package/src/resources/auth/connections.ts +185 -60
  46. package/src/resources/auth/index.ts +0 -1
  47. package/src/resources/credentials.ts +5 -0
  48. package/src/resources/index.ts +0 -1
  49. package/src/version.ts +1 -1
  50. package/version.d.mts +1 -1
  51. package/version.d.ts +1 -1
  52. package/version.js +1 -1
  53. package/version.mjs +1 -1
  54. package/resources/agents/agents.d.mts +0 -10
  55. package/resources/agents/agents.d.mts.map +0 -1
  56. package/resources/agents/agents.d.ts +0 -10
  57. package/resources/agents/agents.d.ts.map +0 -1
  58. package/resources/agents/agents.js +0 -17
  59. package/resources/agents/agents.js.map +0 -1
  60. package/resources/agents/agents.mjs +0 -12
  61. package/resources/agents/agents.mjs.map +0 -1
  62. package/resources/agents/auth/auth.d.mts +0 -474
  63. package/resources/agents/auth/auth.d.mts.map +0 -1
  64. package/resources/agents/auth/auth.d.ts +0 -474
  65. package/resources/agents/auth/auth.d.ts.map +0 -1
  66. package/resources/agents/auth/auth.js +0 -66
  67. package/resources/agents/auth/auth.js.map +0 -1
  68. package/resources/agents/auth/auth.mjs +0 -61
  69. package/resources/agents/auth/auth.mjs.map +0 -1
  70. package/resources/agents/auth/index.d.mts +0 -3
  71. package/resources/agents/auth/index.d.mts.map +0 -1
  72. package/resources/agents/auth/index.d.ts +0 -3
  73. package/resources/agents/auth/index.d.ts.map +0 -1
  74. package/resources/agents/auth/index.js +0 -9
  75. package/resources/agents/auth/index.js.map +0 -1
  76. package/resources/agents/auth/index.mjs +0 -4
  77. package/resources/agents/auth/index.mjs.map +0 -1
  78. package/resources/agents/auth/invocations.d.mts +0 -96
  79. package/resources/agents/auth/invocations.d.mts.map +0 -1
  80. package/resources/agents/auth/invocations.d.ts +0 -96
  81. package/resources/agents/auth/invocations.d.ts.map +0 -1
  82. package/resources/agents/auth/invocations.js +0 -50
  83. package/resources/agents/auth/invocations.js.map +0 -1
  84. package/resources/agents/auth/invocations.mjs +0 -46
  85. package/resources/agents/auth/invocations.mjs.map +0 -1
  86. package/resources/agents/auth.d.mts +0 -2
  87. package/resources/agents/auth.d.mts.map +0 -1
  88. package/resources/agents/auth.d.ts +0 -2
  89. package/resources/agents/auth.d.ts.map +0 -1
  90. package/resources/agents/auth.js +0 -6
  91. package/resources/agents/auth.js.map +0 -1
  92. package/resources/agents/auth.mjs +0 -3
  93. package/resources/agents/auth.mjs.map +0 -1
  94. package/resources/agents/index.d.mts +0 -3
  95. package/resources/agents/index.d.mts.map +0 -1
  96. package/resources/agents/index.d.ts +0 -3
  97. package/resources/agents/index.d.ts.map +0 -1
  98. package/resources/agents/index.js +0 -9
  99. package/resources/agents/index.js.map +0 -1
  100. package/resources/agents/index.mjs +0 -4
  101. package/resources/agents/index.mjs.map +0 -1
  102. package/resources/agents.d.mts +0 -2
  103. package/resources/agents.d.mts.map +0 -1
  104. package/resources/agents.d.ts +0 -2
  105. package/resources/agents.d.ts.map +0 -1
  106. package/resources/agents.js +0 -6
  107. package/resources/agents.js.map +0 -1
  108. package/resources/agents.mjs +0 -3
  109. package/resources/agents.mjs.map +0 -1
  110. package/src/resources/agents/agents.ts +0 -39
  111. package/src/resources/agents/auth/auth.ts +0 -599
  112. package/src/resources/agents/auth/index.ts +0 -22
  113. package/src/resources/agents/auth/invocations.ts +0 -137
  114. package/src/resources/agents/auth.ts +0 -3
  115. package/src/resources/agents/index.ts +0 -16
  116. package/src/resources/agents.ts +0 -3
@@ -1,96 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as AuthAPI from "./auth.mjs";
3
- import { APIPromise } from "../../../core/api-promise.mjs";
4
- import { RequestOptions } from "../../../internal/request-options.mjs";
5
- export declare class Invocations extends APIResource {
6
- /**
7
- * **Deprecated: Use POST /auth/connections/{id}/login instead.** Creates a new
8
- * authentication invocation for the specified auth agent. This starts the auth
9
- * flow and returns a hosted URL for the user to complete authentication.
10
- *
11
- * @deprecated
12
- */
13
- create(body: InvocationCreateParams, options?: RequestOptions): APIPromise<AuthAPI.AuthAgentInvocationCreateResponse>;
14
- /**
15
- * **Deprecated: Use GET /auth/connections/{id} instead.** Returns invocation
16
- * details including status, app_name, and domain. Supports both API key and JWT
17
- * (from exchange endpoint) authentication.
18
- *
19
- * @deprecated
20
- */
21
- retrieve(invocationID: string, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthInvocationResponse>;
22
- /**
23
- * **Deprecated: Use POST /auth/connections/{id}/exchange instead.** Validates the
24
- * handoff code and returns a JWT token for subsequent requests. No authentication
25
- * required (the handoff code serves as the credential).
26
- *
27
- * @deprecated
28
- */
29
- exchange(invocationID: string, body: InvocationExchangeParams, options?: RequestOptions): APIPromise<InvocationExchangeResponse>;
30
- /**
31
- * **Deprecated: Use POST /auth/connections/{id}/submit instead.** Submits field
32
- * values for the discovered login form. Returns immediately after submission is
33
- * accepted. Poll the invocation endpoint to track progress and get results.
34
- *
35
- * @deprecated
36
- */
37
- submit(invocationID: string, body: InvocationSubmitParams, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthSubmitResponse>;
38
- }
39
- /**
40
- * Response from exchange endpoint
41
- */
42
- export interface InvocationExchangeResponse {
43
- /**
44
- * Invocation ID
45
- */
46
- invocation_id: string;
47
- /**
48
- * JWT token with invocation_id claim (30 minute TTL)
49
- */
50
- jwt: string;
51
- }
52
- export interface InvocationCreateParams {
53
- /**
54
- * ID of the auth agent to create an invocation for
55
- */
56
- auth_agent_id: string;
57
- /**
58
- * If provided, saves the submitted credentials under this name upon successful
59
- * login. The credential will be linked to the auth agent for automatic
60
- * re-authentication.
61
- */
62
- save_credential_as?: string;
63
- }
64
- export interface InvocationExchangeParams {
65
- /**
66
- * Handoff code from start endpoint
67
- */
68
- code: string;
69
- }
70
- export type InvocationSubmitParams = InvocationSubmitParams.Variant0 | InvocationSubmitParams.Variant1 | InvocationSubmitParams.Variant2;
71
- export declare namespace InvocationSubmitParams {
72
- interface Variant0 {
73
- /**
74
- * Values for the discovered login fields
75
- */
76
- field_values: {
77
- [key: string]: string;
78
- };
79
- }
80
- interface Variant1 {
81
- /**
82
- * Selector of SSO button to click
83
- */
84
- sso_button: string;
85
- }
86
- interface Variant2 {
87
- /**
88
- * The MFA delivery method type (includes password for auth method selection pages)
89
- */
90
- selected_mfa_type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password';
91
- }
92
- }
93
- export declare namespace Invocations {
94
- export { type InvocationExchangeResponse as InvocationExchangeResponse, type InvocationCreateParams as InvocationCreateParams, type InvocationExchangeParams as InvocationExchangeParams, type InvocationSubmitParams as InvocationSubmitParams, };
95
- }
96
- //# sourceMappingURL=invocations.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invocations.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,iCAAiC,CAAC;IAIxD;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAIzG;;;;;;OAMG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;OAMG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAG/C;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,sBAAsB,GAC9B,sBAAsB,CAAC,QAAQ,GAC/B,sBAAsB,CAAC,QAAQ,GAC/B,sBAAsB,CAAC,QAAQ,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,UAAiB,QAAQ;QACvB;;WAEG;QACH,YAAY,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;KACzC;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACpB;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,iBAAiB,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;KAC5E;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,96 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import * as AuthAPI from "./auth.js";
3
- import { APIPromise } from "../../../core/api-promise.js";
4
- import { RequestOptions } from "../../../internal/request-options.js";
5
- export declare class Invocations extends APIResource {
6
- /**
7
- * **Deprecated: Use POST /auth/connections/{id}/login instead.** Creates a new
8
- * authentication invocation for the specified auth agent. This starts the auth
9
- * flow and returns a hosted URL for the user to complete authentication.
10
- *
11
- * @deprecated
12
- */
13
- create(body: InvocationCreateParams, options?: RequestOptions): APIPromise<AuthAPI.AuthAgentInvocationCreateResponse>;
14
- /**
15
- * **Deprecated: Use GET /auth/connections/{id} instead.** Returns invocation
16
- * details including status, app_name, and domain. Supports both API key and JWT
17
- * (from exchange endpoint) authentication.
18
- *
19
- * @deprecated
20
- */
21
- retrieve(invocationID: string, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthInvocationResponse>;
22
- /**
23
- * **Deprecated: Use POST /auth/connections/{id}/exchange instead.** Validates the
24
- * handoff code and returns a JWT token for subsequent requests. No authentication
25
- * required (the handoff code serves as the credential).
26
- *
27
- * @deprecated
28
- */
29
- exchange(invocationID: string, body: InvocationExchangeParams, options?: RequestOptions): APIPromise<InvocationExchangeResponse>;
30
- /**
31
- * **Deprecated: Use POST /auth/connections/{id}/submit instead.** Submits field
32
- * values for the discovered login form. Returns immediately after submission is
33
- * accepted. Poll the invocation endpoint to track progress and get results.
34
- *
35
- * @deprecated
36
- */
37
- submit(invocationID: string, body: InvocationSubmitParams, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthSubmitResponse>;
38
- }
39
- /**
40
- * Response from exchange endpoint
41
- */
42
- export interface InvocationExchangeResponse {
43
- /**
44
- * Invocation ID
45
- */
46
- invocation_id: string;
47
- /**
48
- * JWT token with invocation_id claim (30 minute TTL)
49
- */
50
- jwt: string;
51
- }
52
- export interface InvocationCreateParams {
53
- /**
54
- * ID of the auth agent to create an invocation for
55
- */
56
- auth_agent_id: string;
57
- /**
58
- * If provided, saves the submitted credentials under this name upon successful
59
- * login. The credential will be linked to the auth agent for automatic
60
- * re-authentication.
61
- */
62
- save_credential_as?: string;
63
- }
64
- export interface InvocationExchangeParams {
65
- /**
66
- * Handoff code from start endpoint
67
- */
68
- code: string;
69
- }
70
- export type InvocationSubmitParams = InvocationSubmitParams.Variant0 | InvocationSubmitParams.Variant1 | InvocationSubmitParams.Variant2;
71
- export declare namespace InvocationSubmitParams {
72
- interface Variant0 {
73
- /**
74
- * Values for the discovered login fields
75
- */
76
- field_values: {
77
- [key: string]: string;
78
- };
79
- }
80
- interface Variant1 {
81
- /**
82
- * Selector of SSO button to click
83
- */
84
- sso_button: string;
85
- }
86
- interface Variant2 {
87
- /**
88
- * The MFA delivery method type (includes password for auth method selection pages)
89
- */
90
- selected_mfa_type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password';
91
- }
92
- }
93
- export declare namespace Invocations {
94
- export { type InvocationExchangeResponse as InvocationExchangeResponse, type InvocationCreateParams as InvocationCreateParams, type InvocationExchangeParams as InvocationExchangeParams, type InvocationSubmitParams as InvocationSubmitParams, };
95
- }
96
- //# sourceMappingURL=invocations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invocations.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,iCAAiC,CAAC;IAIxD;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAIzG;;;;;;OAMG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;OAMG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAG/C;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,sBAAsB,GAC9B,sBAAsB,CAAC,QAAQ,GAC/B,sBAAsB,CAAC,QAAQ,GAC/B,sBAAsB,CAAC,QAAQ,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,UAAiB,QAAQ;QACvB;;WAEG;QACH,YAAY,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;KACzC;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACpB;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,iBAAiB,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;KAC5E;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,50 +0,0 @@
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.Invocations = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- const path_1 = require("../../../internal/utils/path.js");
7
- class Invocations extends resource_1.APIResource {
8
- /**
9
- * **Deprecated: Use POST /auth/connections/{id}/login instead.** Creates a new
10
- * authentication invocation for the specified auth agent. This starts the auth
11
- * flow and returns a hosted URL for the user to complete authentication.
12
- *
13
- * @deprecated
14
- */
15
- create(body, options) {
16
- return this._client.post('/agents/auth/invocations', { body, ...options });
17
- }
18
- /**
19
- * **Deprecated: Use GET /auth/connections/{id} instead.** Returns invocation
20
- * details including status, app_name, and domain. Supports both API key and JWT
21
- * (from exchange endpoint) authentication.
22
- *
23
- * @deprecated
24
- */
25
- retrieve(invocationID, options) {
26
- return this._client.get((0, path_1.path) `/agents/auth/invocations/${invocationID}`, options);
27
- }
28
- /**
29
- * **Deprecated: Use POST /auth/connections/{id}/exchange instead.** Validates the
30
- * handoff code and returns a JWT token for subsequent requests. No authentication
31
- * required (the handoff code serves as the credential).
32
- *
33
- * @deprecated
34
- */
35
- exchange(invocationID, body, options) {
36
- return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
37
- }
38
- /**
39
- * **Deprecated: Use POST /auth/connections/{id}/submit instead.** Submits field
40
- * values for the discovered login form. Returns immediately after submission is
41
- * accepted. Poll the invocation endpoint to track progress and get results.
42
- *
43
- * @deprecated
44
- */
45
- submit(invocationID, body, options) {
46
- return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
47
- }
48
- }
49
- exports.Invocations = Invocations;
50
- //# sourceMappingURL=invocations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invocations.js","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;OAMG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,YAAoB,EACpB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,YAAY,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,YAAoB,EACpB,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,YAAY,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;CACF;AAvDD,kCAuDC"}
@@ -1,46 +0,0 @@
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
- export class Invocations extends APIResource {
5
- /**
6
- * **Deprecated: Use POST /auth/connections/{id}/login instead.** Creates a new
7
- * authentication invocation for the specified auth agent. This starts the auth
8
- * flow and returns a hosted URL for the user to complete authentication.
9
- *
10
- * @deprecated
11
- */
12
- create(body, options) {
13
- return this._client.post('/agents/auth/invocations', { body, ...options });
14
- }
15
- /**
16
- * **Deprecated: Use GET /auth/connections/{id} instead.** Returns invocation
17
- * details including status, app_name, and domain. Supports both API key and JWT
18
- * (from exchange endpoint) authentication.
19
- *
20
- * @deprecated
21
- */
22
- retrieve(invocationID, options) {
23
- return this._client.get(path `/agents/auth/invocations/${invocationID}`, options);
24
- }
25
- /**
26
- * **Deprecated: Use POST /auth/connections/{id}/exchange instead.** Validates the
27
- * handoff code and returns a JWT token for subsequent requests. No authentication
28
- * required (the handoff code serves as the credential).
29
- *
30
- * @deprecated
31
- */
32
- exchange(invocationID, body, options) {
33
- return this._client.post(path `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
34
- }
35
- /**
36
- * **Deprecated: Use POST /auth/connections/{id}/submit instead.** Submits field
37
- * values for the discovered login form. Returns immediately after submission is
38
- * accepted. Poll the invocation endpoint to track progress and get results.
39
- *
40
- * @deprecated
41
- */
42
- submit(invocationID, body, options) {
43
- return this._client.post(path `/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
44
- }
45
- }
46
- //# sourceMappingURL=invocations.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invocations.mjs","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,YAAoB,EACpB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,YAAY,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,YAAoB,EACpB,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,YAAY,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from "./auth/index.mjs";
2
- //# sourceMappingURL=auth.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../src/resources/agents/auth.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./auth/index.js";
2
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/resources/agents/auth.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
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("./auth/index.js"), exports);
6
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/resources/agents/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./auth/index.mjs";
3
- //# sourceMappingURL=auth.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../src/resources/agents/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,3 +0,0 @@
1
- export { Agents } from "./agents.mjs";
2
- export { Auth, type AgentAuthInvocationResponse, type AgentAuthSubmitResponse, type AuthAgent, type AuthAgentCreateRequest, type AuthAgentInvocationCreateRequest, type AuthAgentInvocationCreateResponse, type DiscoveredField, type AuthCreateParams, type AuthListParams, type AuthAgentsOffsetPagination, } from "./auth/index.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,EACL,IAAI,EACJ,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC"}
@@ -1,3 +0,0 @@
1
- export { Agents } from "./agents.js";
2
- export { Auth, type AgentAuthInvocationResponse, type AgentAuthSubmitResponse, type AuthAgent, type AuthAgentCreateRequest, type AuthAgentInvocationCreateRequest, type AuthAgentInvocationCreateResponse, type DiscoveredField, type AuthCreateParams, type AuthListParams, type AuthAgentsOffsetPagination, } from "./auth/index.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,EACL,IAAI,EACJ,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC"}
@@ -1,9 +0,0 @@
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.Auth = exports.Agents = void 0;
5
- var agents_1 = require("./agents.js");
6
- Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
7
- var index_1 = require("./auth/index.js");
8
- Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return index_1.Auth; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,yCAYsB;AAXpB,6FAAA,IAAI,OAAA"}
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Agents } from "./agents.mjs";
3
- export { Auth, } from "./auth/index.mjs";
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAE;OACV,EACL,IAAI,GAWL"}
@@ -1,2 +0,0 @@
1
- export * from "./agents/index.mjs";
2
- //# sourceMappingURL=agents.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./agents/index.js";
2
- //# sourceMappingURL=agents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
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("./agents/index.js"), exports);
6
- //# sourceMappingURL=agents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./agents/index.mjs";
3
- //# sourceMappingURL=agents.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,39 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import * as AuthAPI from './auth/auth';
5
- import {
6
- AgentAuthInvocationResponse,
7
- AgentAuthSubmitResponse,
8
- Auth,
9
- AuthAgent,
10
- AuthAgentCreateRequest,
11
- AuthAgentInvocationCreateRequest,
12
- AuthAgentInvocationCreateResponse,
13
- AuthAgentsOffsetPagination,
14
- AuthCreateParams,
15
- AuthListParams,
16
- DiscoveredField,
17
- } from './auth/auth';
18
-
19
- export class Agents extends APIResource {
20
- auth: AuthAPI.Auth = new AuthAPI.Auth(this._client);
21
- }
22
-
23
- Agents.Auth = Auth;
24
-
25
- export declare namespace Agents {
26
- export {
27
- Auth as Auth,
28
- type AgentAuthInvocationResponse as AgentAuthInvocationResponse,
29
- type AgentAuthSubmitResponse as AgentAuthSubmitResponse,
30
- type AuthAgent as AuthAgent,
31
- type AuthAgentCreateRequest as AuthAgentCreateRequest,
32
- type AuthAgentInvocationCreateRequest as AuthAgentInvocationCreateRequest,
33
- type AuthAgentInvocationCreateResponse as AuthAgentInvocationCreateResponse,
34
- type DiscoveredField as DiscoveredField,
35
- type AuthAgentsOffsetPagination as AuthAgentsOffsetPagination,
36
- type AuthCreateParams as AuthCreateParams,
37
- type AuthListParams as AuthListParams,
38
- };
39
- }