@arcadeai/arcadejs 1.7.0 → 1.8.1
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/CHANGELOG.md +12 -0
- package/index.d.mts +3 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/lib/zod/types.d.ts +2 -2
- package/lib/zod/types.d.ts.map +1 -1
- package/lib/zod/zod.d.ts +1 -1
- package/lib/zod/zod.d.ts.map +1 -1
- package/lib/zod/zod.js +2 -2
- package/lib/zod/zod.js.map +1 -1
- package/lib/zod/zod.mjs +2 -2
- package/lib/zod/zod.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/admin/admin.d.ts +18 -0
- package/resources/admin/admin.d.ts.map +1 -0
- package/resources/admin/admin.js +48 -0
- package/resources/admin/admin.js.map +1 -0
- package/resources/admin/admin.mjs +21 -0
- package/resources/admin/admin.mjs.map +1 -0
- package/resources/admin/auth-providers.d.ts +451 -0
- package/resources/admin/auth-providers.d.ts.map +1 -0
- package/resources/admin/auth-providers.js +39 -0
- package/resources/admin/auth-providers.js.map +1 -0
- package/resources/admin/auth-providers.mjs +35 -0
- package/resources/admin/auth-providers.mjs.map +1 -0
- package/resources/admin/index.d.ts +5 -0
- package/resources/admin/index.d.ts.map +1 -0
- package/resources/admin/index.js +14 -0
- package/resources/admin/index.js.map +1 -0
- package/resources/admin/index.mjs +6 -0
- package/resources/admin/index.mjs.map +1 -0
- package/resources/admin/secrets.d.ts +39 -0
- package/resources/admin/secrets.d.ts.map +1 -0
- package/resources/admin/secrets.js +24 -0
- package/resources/admin/secrets.js.map +1 -0
- package/resources/admin/secrets.mjs +20 -0
- package/resources/admin/secrets.mjs.map +1 -0
- package/resources/admin/user-connections.d.ts +48 -0
- package/resources/admin/user-connections.d.ts.map +1 -0
- package/resources/admin/user-connections.js +33 -0
- package/resources/admin/user-connections.js.map +1 -0
- package/resources/admin/user-connections.mjs +28 -0
- package/resources/admin/user-connections.mjs.map +1 -0
- package/resources/admin.d.ts +2 -0
- package/resources/admin.d.ts.map +1 -0
- package/resources/admin.js +19 -0
- package/resources/admin.js.map +1 -0
- package/resources/admin.mjs +3 -0
- package/resources/admin.mjs.map +1 -0
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/src/index.ts +5 -0
- package/src/lib/zod/types.ts +2 -2
- package/src/lib/zod/zod.ts +3 -3
- package/src/resources/admin/admin.ts +58 -0
- package/src/resources/admin/auth-providers.ts +771 -0
- package/src/resources/admin/index.ts +19 -0
- package/src/resources/admin/secrets.ts +65 -0
- package/src/resources/admin/user-connections.ts +93 -0
- package/src/resources/admin.ts +3 -0
- package/src/resources/index.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Admin } from './admin';
|
|
4
|
+
export {
|
|
5
|
+
AuthProviders,
|
|
6
|
+
type AuthProviderCreateRequest,
|
|
7
|
+
type AuthProviderResponse,
|
|
8
|
+
type AuthProviderUpdateRequest,
|
|
9
|
+
type AuthProviderListResponse,
|
|
10
|
+
type AuthProviderCreateParams,
|
|
11
|
+
type AuthProviderPatchParams,
|
|
12
|
+
} from './auth-providers';
|
|
13
|
+
export { Secrets, type SecretResponse, type SecretListResponse } from './secrets';
|
|
14
|
+
export {
|
|
15
|
+
UserConnectionResponsesOffsetPage,
|
|
16
|
+
UserConnections,
|
|
17
|
+
type UserConnectionResponse,
|
|
18
|
+
type UserConnectionListParams,
|
|
19
|
+
} from './user-connections';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
|
|
6
|
+
export class Secrets extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* List all secrets that are visible to the caller
|
|
9
|
+
*/
|
|
10
|
+
list(options?: Core.RequestOptions): Core.APIPromise<SecretListResponse> {
|
|
11
|
+
return this._client.get('/v1/admin/secrets', options);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Delete a secret by its ID
|
|
16
|
+
*/
|
|
17
|
+
delete(secretId: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
18
|
+
return this._client.delete(`/v1/admin/secrets/${secretId}`, {
|
|
19
|
+
...options,
|
|
20
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface SecretResponse {
|
|
26
|
+
id?: string;
|
|
27
|
+
|
|
28
|
+
binding?: SecretResponse.Binding;
|
|
29
|
+
|
|
30
|
+
created_at?: string;
|
|
31
|
+
|
|
32
|
+
description?: string;
|
|
33
|
+
|
|
34
|
+
hint?: string;
|
|
35
|
+
|
|
36
|
+
key?: string;
|
|
37
|
+
|
|
38
|
+
last_accessed_at?: string;
|
|
39
|
+
|
|
40
|
+
updated_at?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export namespace SecretResponse {
|
|
44
|
+
export interface Binding {
|
|
45
|
+
id?: string;
|
|
46
|
+
|
|
47
|
+
type?: 'static' | 'tenant' | 'project' | 'account';
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface SecretListResponse {
|
|
52
|
+
items?: Array<SecretResponse>;
|
|
53
|
+
|
|
54
|
+
limit?: number;
|
|
55
|
+
|
|
56
|
+
offset?: number;
|
|
57
|
+
|
|
58
|
+
page_count?: number;
|
|
59
|
+
|
|
60
|
+
total_count?: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export declare namespace Secrets {
|
|
64
|
+
export { type SecretResponse as SecretResponse, type SecretListResponse as SecretListResponse };
|
|
65
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
|
+
import { OffsetPage, type OffsetPageParams } from '../../pagination';
|
|
7
|
+
|
|
8
|
+
export class UserConnections extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List all auth connections
|
|
11
|
+
*/
|
|
12
|
+
list(
|
|
13
|
+
query?: UserConnectionListParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Core.PagePromise<UserConnectionResponsesOffsetPage, UserConnectionResponse>;
|
|
16
|
+
list(
|
|
17
|
+
options?: Core.RequestOptions,
|
|
18
|
+
): Core.PagePromise<UserConnectionResponsesOffsetPage, UserConnectionResponse>;
|
|
19
|
+
list(
|
|
20
|
+
query: UserConnectionListParams | Core.RequestOptions = {},
|
|
21
|
+
options?: Core.RequestOptions,
|
|
22
|
+
): Core.PagePromise<UserConnectionResponsesOffsetPage, UserConnectionResponse> {
|
|
23
|
+
if (isRequestOptions(query)) {
|
|
24
|
+
return this.list({}, query);
|
|
25
|
+
}
|
|
26
|
+
return this._client.getAPIList('/v1/admin/user_connections', UserConnectionResponsesOffsetPage, {
|
|
27
|
+
query,
|
|
28
|
+
...options,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Delete a user/auth provider connection
|
|
34
|
+
*/
|
|
35
|
+
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
36
|
+
return this._client.delete(`/v1/admin/user_connections/${id}`, {
|
|
37
|
+
...options,
|
|
38
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class UserConnectionResponsesOffsetPage extends OffsetPage<UserConnectionResponse> {}
|
|
44
|
+
|
|
45
|
+
export interface UserConnectionResponse {
|
|
46
|
+
id?: string;
|
|
47
|
+
|
|
48
|
+
connection_id?: string;
|
|
49
|
+
|
|
50
|
+
connection_status?: string;
|
|
51
|
+
|
|
52
|
+
provider_description?: string;
|
|
53
|
+
|
|
54
|
+
provider_id?: string;
|
|
55
|
+
|
|
56
|
+
provider_user_info?: unknown;
|
|
57
|
+
|
|
58
|
+
scopes?: Array<string>;
|
|
59
|
+
|
|
60
|
+
user_id?: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface UserConnectionListParams extends OffsetPageParams {
|
|
64
|
+
provider?: UserConnectionListParams.Provider;
|
|
65
|
+
|
|
66
|
+
user?: UserConnectionListParams.User;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export namespace UserConnectionListParams {
|
|
70
|
+
export interface Provider {
|
|
71
|
+
/**
|
|
72
|
+
* Provider ID
|
|
73
|
+
*/
|
|
74
|
+
id?: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface User {
|
|
78
|
+
/**
|
|
79
|
+
* User ID
|
|
80
|
+
*/
|
|
81
|
+
id?: string;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
UserConnections.UserConnectionResponsesOffsetPage = UserConnectionResponsesOffsetPage;
|
|
86
|
+
|
|
87
|
+
export declare namespace UserConnections {
|
|
88
|
+
export {
|
|
89
|
+
type UserConnectionResponse as UserConnectionResponse,
|
|
90
|
+
UserConnectionResponsesOffsetPage as UserConnectionResponsesOffsetPage,
|
|
91
|
+
type UserConnectionListParams as UserConnectionListParams,
|
|
92
|
+
};
|
|
93
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export * from './shared';
|
|
4
|
+
export { Admin } from './admin/admin';
|
|
4
5
|
export { Auth, type AuthRequest, type AuthAuthorizeParams, type AuthStatusParams } from './auth';
|
|
5
6
|
export {
|
|
6
7
|
Chat,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.8.1'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.8.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.8.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|