@meshery/schemas 1.0.8 → 1.1.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.
- package/README.md +4 -3
- package/dist/cloudApi.d.mts +16699 -16442
- package/dist/cloudApi.d.ts +16699 -16442
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
- package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
- package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta1/credential/CredentialSchema.js +4 -4
- package/dist/constructs/v1beta1/credential/CredentialSchema.mjs +4 -4
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
- package/dist/constructs/v1beta1/event/EventSchema.js +1 -1
- package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -1
- package/dist/constructs/v1beta1/key/KeySchema.js +1 -1
- package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -1
- package/dist/constructs/v1beta1/model/Model.d.mts +3 -12
- package/dist/constructs/v1beta1/model/Model.d.ts +3 -12
- package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
- package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
- package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
- package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
- package/dist/constructs/v1beta1/pattern/Pattern.d.mts +108 -7
- package/dist/constructs/v1beta1/pattern/Pattern.d.ts +108 -7
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +12 -2
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +12 -2
- package/dist/constructs/v1beta1/role/RoleSchema.js +1 -1
- package/dist/constructs/v1beta1/role/RoleSchema.mjs +1 -1
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.js +1 -1
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.mjs +1 -1
- package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
- package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
- package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
- package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
- package/dist/constructs/v1beta1/view/ViewSchema.js +1 -1
- package/dist/constructs/v1beta1/view/ViewSchema.mjs +1 -1
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +2 -2
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +2 -2
- package/dist/constructs/v1beta2/badge/Badge.d.mts +564 -0
- package/dist/constructs/v1beta2/badge/Badge.d.ts +564 -0
- package/dist/constructs/v1beta2/badge/Badge.js +1 -0
- package/dist/constructs/v1beta2/badge/Badge.mjs +0 -0
- package/dist/constructs/v1beta2/badge/BadgeSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/badge/BadgeSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/badge/BadgeSchema.js +2 -0
- package/dist/constructs/v1beta2/badge/BadgeSchema.mjs +2 -0
- package/dist/constructs/v1beta2/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta2/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta2/credential/Credential.d.mts +536 -0
- package/dist/constructs/v1beta2/credential/Credential.d.ts +536 -0
- package/dist/constructs/v1beta2/credential/Credential.js +1 -0
- package/dist/constructs/v1beta2/credential/Credential.mjs +0 -0
- package/dist/constructs/v1beta2/credential/CredentialSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/credential/CredentialSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/credential/CredentialSchema.js +7 -0
- package/dist/constructs/v1beta2/credential/CredentialSchema.mjs +7 -0
- package/dist/constructs/v1beta2/design/Design.d.mts +108 -7
- package/dist/constructs/v1beta2/design/Design.d.ts +108 -7
- package/dist/constructs/v1beta2/design/DesignSchema.js +21 -3
- package/dist/constructs/v1beta2/design/DesignSchema.mjs +21 -3
- package/dist/constructs/v1beta2/event/EventSchema.js +1 -1
- package/dist/constructs/v1beta2/event/EventSchema.mjs +1 -1
- package/dist/constructs/v1beta2/invitation/InvitationSchema.js +1 -1
- package/dist/constructs/v1beta2/invitation/InvitationSchema.mjs +1 -1
- package/dist/constructs/v1beta2/key/Key.d.mts +523 -0
- package/dist/constructs/v1beta2/key/Key.d.ts +523 -0
- package/dist/constructs/v1beta2/key/Key.js +1 -0
- package/dist/constructs/v1beta2/key/Key.mjs +0 -0
- package/dist/constructs/v1beta2/key/KeySchema.d.mts +7 -0
- package/dist/constructs/v1beta2/key/KeySchema.d.ts +7 -0
- package/dist/constructs/v1beta2/key/KeySchema.js +2 -0
- package/dist/constructs/v1beta2/key/KeySchema.mjs +2 -0
- package/dist/constructs/v1beta2/keychain/Keychain.d.mts +651 -0
- package/dist/constructs/v1beta2/keychain/Keychain.d.ts +651 -0
- package/dist/constructs/v1beta2/keychain/Keychain.js +1 -0
- package/dist/constructs/v1beta2/keychain/Keychain.mjs +0 -0
- package/dist/constructs/v1beta2/keychain/KeychainSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/keychain/KeychainSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/keychain/KeychainSchema.js +2 -0
- package/dist/constructs/v1beta2/keychain/KeychainSchema.mjs +2 -0
- package/dist/constructs/v1beta2/model/Model.d.mts +571 -0
- package/dist/constructs/v1beta2/model/Model.d.ts +571 -0
- package/dist/constructs/v1beta2/model/Model.js +1 -0
- package/dist/constructs/v1beta2/model/Model.mjs +0 -0
- package/dist/constructs/v1beta2/model/ModelSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/model/ModelSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/model/ModelSchema.js +6 -0
- package/dist/constructs/v1beta2/model/ModelSchema.mjs +6 -0
- package/dist/constructs/v1beta2/organization/Organization.d.mts +1986 -0
- package/dist/constructs/v1beta2/organization/Organization.d.ts +1986 -0
- package/dist/constructs/v1beta2/organization/Organization.js +1 -0
- package/dist/constructs/v1beta2/organization/Organization.mjs +0 -0
- package/dist/constructs/v1beta2/organization/OrganizationSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/organization/OrganizationSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/organization/OrganizationSchema.js +2 -0
- package/dist/constructs/v1beta2/organization/OrganizationSchema.mjs +2 -0
- package/dist/constructs/v1beta2/plan/PlanSchema.js +1 -1
- package/dist/constructs/v1beta2/plan/PlanSchema.mjs +1 -1
- package/dist/constructs/v1beta2/role/Role.d.mts +751 -0
- package/dist/constructs/v1beta2/role/Role.d.ts +751 -0
- package/dist/constructs/v1beta2/role/Role.js +1 -0
- package/dist/constructs/v1beta2/role/Role.mjs +0 -0
- package/dist/constructs/v1beta2/role/RoleSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/role/RoleSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/role/RoleSchema.js +2 -0
- package/dist/constructs/v1beta2/role/RoleSchema.mjs +2 -0
- package/dist/constructs/v1beta2/schedule/Schedule.d.mts +380 -0
- package/dist/constructs/v1beta2/schedule/Schedule.d.ts +380 -0
- package/dist/constructs/v1beta2/schedule/Schedule.js +1 -0
- package/dist/constructs/v1beta2/schedule/Schedule.mjs +0 -0
- package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/schedule/ScheduleSchema.js +13 -0
- package/dist/constructs/v1beta2/schedule/ScheduleSchema.mjs +13 -0
- package/dist/constructs/v1beta2/subscription/SubscriptionSchema.js +1 -1
- package/dist/constructs/v1beta2/subscription/SubscriptionSchema.mjs +1 -1
- package/dist/constructs/v1beta2/team/Team.d.mts +939 -0
- package/dist/constructs/v1beta2/team/Team.d.ts +939 -0
- package/dist/constructs/v1beta2/team/Team.js +1 -0
- package/dist/constructs/v1beta2/team/Team.mjs +0 -0
- package/dist/constructs/v1beta2/team/TeamSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/team/TeamSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/team/TeamSchema.js +2 -0
- package/dist/constructs/v1beta2/team/TeamSchema.mjs +2 -0
- package/dist/constructs/v1beta2/token/TokenSchema.js +1 -1
- package/dist/constructs/v1beta2/token/TokenSchema.mjs +1 -1
- package/dist/constructs/v1beta2/user/User.d.mts +1831 -0
- package/dist/constructs/v1beta2/user/User.d.ts +1831 -0
- package/dist/constructs/v1beta2/user/User.js +1 -0
- package/dist/constructs/v1beta2/user/User.mjs +0 -0
- package/dist/constructs/v1beta2/user/UserSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/user/UserSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/user/UserSchema.js +2 -0
- package/dist/constructs/v1beta2/user/UserSchema.mjs +2 -0
- package/dist/constructs/v1beta2/view/View.d.mts +810 -0
- package/dist/constructs/v1beta2/view/View.d.ts +810 -0
- package/dist/constructs/v1beta2/view/View.js +1 -0
- package/dist/constructs/v1beta2/view/View.mjs +0 -0
- package/dist/constructs/v1beta2/view/ViewSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/view/ViewSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/view/ViewSchema.js +13 -0
- package/dist/constructs/v1beta2/view/ViewSchema.mjs +13 -0
- package/dist/constructs/v1beta3/component/Component.d.mts +796 -0
- package/dist/constructs/v1beta3/component/Component.d.ts +796 -0
- package/dist/constructs/v1beta3/component/Component.js +1 -0
- package/dist/constructs/v1beta3/component/Component.mjs +0 -0
- package/dist/constructs/v1beta3/component/ComponentSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/component/ComponentSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/component/ComponentSchema.js +10 -0
- package/dist/constructs/v1beta3/component/ComponentSchema.mjs +10 -0
- package/dist/constructs/v1beta3/connection/Connection.d.mts +1348 -0
- package/dist/constructs/v1beta3/connection/Connection.d.ts +1348 -0
- package/dist/constructs/v1beta3/connection/Connection.js +1 -0
- package/dist/constructs/v1beta3/connection/Connection.mjs +0 -0
- package/dist/constructs/v1beta3/connection/ConnectionSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/connection/ConnectionSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/connection/ConnectionSchema.js +2 -0
- package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +2 -0
- package/dist/constructs/v1beta3/design/Design.d.mts +17552 -0
- package/dist/constructs/v1beta3/design/Design.d.ts +17552 -0
- package/dist/constructs/v1beta3/design/Design.js +1 -0
- package/dist/constructs/v1beta3/design/Design.mjs +0 -0
- package/dist/constructs/v1beta3/design/DesignSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/design/DesignSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/design/DesignSchema.js +506 -0
- package/dist/constructs/v1beta3/design/DesignSchema.mjs +506 -0
- package/dist/constructs/v1beta3/environment/Environment.d.mts +800 -0
- package/dist/constructs/v1beta3/environment/Environment.d.ts +800 -0
- package/dist/constructs/v1beta3/environment/Environment.js +1 -0
- package/dist/constructs/v1beta3/environment/Environment.mjs +0 -0
- package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/environment/EnvironmentSchema.js +2 -0
- package/dist/constructs/v1beta3/environment/EnvironmentSchema.mjs +2 -0
- package/dist/constructs/v1beta3/event/Event.d.mts +733 -0
- package/dist/constructs/v1beta3/event/Event.d.ts +733 -0
- package/dist/constructs/v1beta3/event/Event.js +1 -0
- package/dist/constructs/v1beta3/event/Event.mjs +0 -0
- package/dist/constructs/v1beta3/event/EventSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/event/EventSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/event/EventSchema.js +2 -0
- package/dist/constructs/v1beta3/event/EventSchema.mjs +2 -0
- package/dist/constructs/v1beta3/invitation/Invitation.d.mts +1079 -0
- package/dist/constructs/v1beta3/invitation/Invitation.d.ts +1079 -0
- package/dist/constructs/v1beta3/invitation/Invitation.js +1 -0
- package/dist/constructs/v1beta3/invitation/Invitation.mjs +0 -0
- package/dist/constructs/v1beta3/invitation/InvitationSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/invitation/InvitationSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/invitation/InvitationSchema.js +2 -0
- package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +2 -0
- package/dist/constructs/v1beta3/plan/Plan.d.mts +198 -0
- package/dist/constructs/v1beta3/plan/Plan.d.ts +198 -0
- package/dist/constructs/v1beta3/plan/Plan.js +1 -0
- package/dist/constructs/v1beta3/plan/Plan.mjs +0 -0
- package/dist/constructs/v1beta3/plan/PlanSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/plan/PlanSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/plan/PlanSchema.js +2 -0
- package/dist/constructs/v1beta3/plan/PlanSchema.mjs +2 -0
- package/dist/constructs/v1beta3/relationship/Relationship.d.mts +1884 -0
- package/dist/constructs/v1beta3/relationship/Relationship.d.ts +1884 -0
- package/dist/constructs/v1beta3/relationship/Relationship.js +1 -0
- package/dist/constructs/v1beta3/relationship/Relationship.mjs +0 -0
- package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/relationship/RelationshipSchema.js +155 -0
- package/dist/constructs/v1beta3/relationship/RelationshipSchema.mjs +155 -0
- package/dist/constructs/v1beta3/subscription/Subscription.d.mts +876 -0
- package/dist/constructs/v1beta3/subscription/Subscription.d.ts +876 -0
- package/dist/constructs/v1beta3/subscription/Subscription.js +1 -0
- package/dist/constructs/v1beta3/subscription/Subscription.mjs +0 -0
- package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/subscription/SubscriptionSchema.js +2 -0
- package/dist/constructs/v1beta3/subscription/SubscriptionSchema.mjs +2 -0
- package/dist/constructs/v1beta3/token/Token.d.mts +543 -0
- package/dist/constructs/v1beta3/token/Token.d.ts +543 -0
- package/dist/constructs/v1beta3/token/Token.js +1 -0
- package/dist/constructs/v1beta3/token/Token.mjs +0 -0
- package/dist/constructs/v1beta3/token/TokenSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/token/TokenSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/token/TokenSchema.js +2 -0
- package/dist/constructs/v1beta3/token/TokenSchema.mjs +2 -0
- package/dist/constructs/v1beta3/workspace/Workspace.d.mts +4808 -0
- package/dist/constructs/v1beta3/workspace/Workspace.d.ts +4808 -0
- package/dist/constructs/v1beta3/workspace/Workspace.js +1 -0
- package/dist/constructs/v1beta3/workspace/Workspace.mjs +0 -0
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.js +98 -0
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.mjs +98 -0
- package/dist/index.d.mts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +38 -10
- package/dist/index.mjs +38 -10
- package/dist/mesheryApi.d.mts +6405 -6244
- package/dist/mesheryApi.d.ts +6405 -6244
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
interface paths {
|
|
6
|
+
"/api/identity/tokens": {
|
|
7
|
+
/** Retrieves tokens associated with the authenticated user. */
|
|
8
|
+
get: operations["getUserTokens"];
|
|
9
|
+
/** Generates a token for the authenticated user. */
|
|
10
|
+
post: operations["generateToken"];
|
|
11
|
+
/** Deletes a specific token for the authenticated user. */
|
|
12
|
+
delete: operations["deleteUserToken"];
|
|
13
|
+
};
|
|
14
|
+
"/api/identity/tokens/{tokenId}": {
|
|
15
|
+
/** Retrieves a specific token by its ID. */
|
|
16
|
+
get: operations["getUserTokensById"];
|
|
17
|
+
};
|
|
18
|
+
"/api/identity/tokens/infinite": {
|
|
19
|
+
/** Creates a non-expiring user token for provider admin use cases. */
|
|
20
|
+
get: operations["issueIndefiniteLifetimeToken"];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
interface components {
|
|
24
|
+
schemas: {
|
|
25
|
+
/** @description Represents a user-owned API token or OAuth session. */
|
|
26
|
+
UserToken: {
|
|
27
|
+
/**
|
|
28
|
+
* Format: uuid
|
|
29
|
+
* @description Unique identifier for the token.
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* Format: uuid
|
|
34
|
+
* @description UUID of the user who owns the token.
|
|
35
|
+
*/
|
|
36
|
+
userId: string;
|
|
37
|
+
/** @description Authentication provider associated with the token. */
|
|
38
|
+
provider: string;
|
|
39
|
+
/** @description Access token value. */
|
|
40
|
+
accessToken?: string;
|
|
41
|
+
/** @description Refresh token value when applicable. */
|
|
42
|
+
refreshToken?: string;
|
|
43
|
+
/** @description Human-readable token name. */
|
|
44
|
+
name?: string;
|
|
45
|
+
/** @description Purpose for which the token was created. */
|
|
46
|
+
purpose?: string;
|
|
47
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
48
|
+
isOauth?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Format: date-time
|
|
51
|
+
* @description Timestamp when the token was created.
|
|
52
|
+
*/
|
|
53
|
+
createdAt?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Format: date-time
|
|
56
|
+
* @description Timestamp when the token was last updated.
|
|
57
|
+
*/
|
|
58
|
+
updatedAt?: string;
|
|
59
|
+
};
|
|
60
|
+
/** @description A paginated list of tokens. */
|
|
61
|
+
TokenPage: {
|
|
62
|
+
/** @description Tokens returned on the current page. */
|
|
63
|
+
tokens: {
|
|
64
|
+
/**
|
|
65
|
+
* Format: uuid
|
|
66
|
+
* @description Unique identifier for the token.
|
|
67
|
+
*/
|
|
68
|
+
id: string;
|
|
69
|
+
/**
|
|
70
|
+
* Format: uuid
|
|
71
|
+
* @description UUID of the user who owns the token.
|
|
72
|
+
*/
|
|
73
|
+
userId: string;
|
|
74
|
+
/** @description Authentication provider associated with the token. */
|
|
75
|
+
provider: string;
|
|
76
|
+
/** @description Access token value. */
|
|
77
|
+
accessToken?: string;
|
|
78
|
+
/** @description Refresh token value when applicable. */
|
|
79
|
+
refreshToken?: string;
|
|
80
|
+
/** @description Human-readable token name. */
|
|
81
|
+
name?: string;
|
|
82
|
+
/** @description Purpose for which the token was created. */
|
|
83
|
+
purpose?: string;
|
|
84
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
85
|
+
isOauth?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Format: date-time
|
|
88
|
+
* @description Timestamp when the token was created.
|
|
89
|
+
*/
|
|
90
|
+
createdAt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Format: date-time
|
|
93
|
+
* @description Timestamp when the token was last updated.
|
|
94
|
+
*/
|
|
95
|
+
updatedAt?: string;
|
|
96
|
+
}[];
|
|
97
|
+
/** @description Total number of tokens across all pages. */
|
|
98
|
+
totalCount: number;
|
|
99
|
+
/** @description Current page number (zero-based). */
|
|
100
|
+
page: number;
|
|
101
|
+
/** @description Number of tokens per page. */
|
|
102
|
+
pageSize: number;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
responses: {
|
|
106
|
+
/** Invalid request body or request param */
|
|
107
|
+
400: {
|
|
108
|
+
content: {
|
|
109
|
+
"text/plain": string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
/** Expired JWT token used or insufficient privilege */
|
|
113
|
+
401: {
|
|
114
|
+
content: {
|
|
115
|
+
"text/plain": string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
/** Result not found */
|
|
119
|
+
404: {
|
|
120
|
+
content: {
|
|
121
|
+
"text/plain": string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
/** Internal server error */
|
|
125
|
+
500: {
|
|
126
|
+
content: {
|
|
127
|
+
"text/plain": string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
parameters: {
|
|
132
|
+
/** @description Token ID */
|
|
133
|
+
tokenId: string;
|
|
134
|
+
/** @description ID of the token to delete. */
|
|
135
|
+
tokenIdQuery: string;
|
|
136
|
+
/** @description UUID of the user to issue the indefinite token for. */
|
|
137
|
+
userIdQuery: string;
|
|
138
|
+
/** @description Authentication provider to associate with the indefinite token. */
|
|
139
|
+
providerQuery: string;
|
|
140
|
+
/** @description Get responses by page */
|
|
141
|
+
page: string;
|
|
142
|
+
/** @description Get responses by pagesize */
|
|
143
|
+
pagesize: string;
|
|
144
|
+
/** @description Get responses that match search param value */
|
|
145
|
+
search: string;
|
|
146
|
+
/** @description Get ordered responses */
|
|
147
|
+
order: string;
|
|
148
|
+
/** @description Whether to retrieve OAuth-backed sessions instead of API tokens. */
|
|
149
|
+
isOauth: boolean;
|
|
150
|
+
/** @description Name of the token. */
|
|
151
|
+
name: string;
|
|
152
|
+
/** @description Purpose for which the token is generated. */
|
|
153
|
+
purpose: string;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
interface operations {
|
|
157
|
+
/** Retrieves tokens associated with the authenticated user. */
|
|
158
|
+
getUserTokens: {
|
|
159
|
+
parameters: {
|
|
160
|
+
query: {
|
|
161
|
+
/** Whether to retrieve OAuth-backed sessions instead of API tokens. */
|
|
162
|
+
isOauth?: boolean;
|
|
163
|
+
/** Get responses by page */
|
|
164
|
+
page?: string;
|
|
165
|
+
/** Get responses by pagesize */
|
|
166
|
+
pagesize?: string;
|
|
167
|
+
/** Get responses that match search param value */
|
|
168
|
+
search?: string;
|
|
169
|
+
/** Get ordered responses */
|
|
170
|
+
order?: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
responses: {
|
|
174
|
+
/** Tokens response */
|
|
175
|
+
200: {
|
|
176
|
+
content: {
|
|
177
|
+
"application/json": {
|
|
178
|
+
/** @description Tokens returned on the current page. */
|
|
179
|
+
tokens: {
|
|
180
|
+
/**
|
|
181
|
+
* Format: uuid
|
|
182
|
+
* @description Unique identifier for the token.
|
|
183
|
+
*/
|
|
184
|
+
id: string;
|
|
185
|
+
/**
|
|
186
|
+
* Format: uuid
|
|
187
|
+
* @description UUID of the user who owns the token.
|
|
188
|
+
*/
|
|
189
|
+
userId: string;
|
|
190
|
+
/** @description Authentication provider associated with the token. */
|
|
191
|
+
provider: string;
|
|
192
|
+
/** @description Access token value. */
|
|
193
|
+
accessToken?: string;
|
|
194
|
+
/** @description Refresh token value when applicable. */
|
|
195
|
+
refreshToken?: string;
|
|
196
|
+
/** @description Human-readable token name. */
|
|
197
|
+
name?: string;
|
|
198
|
+
/** @description Purpose for which the token was created. */
|
|
199
|
+
purpose?: string;
|
|
200
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
201
|
+
isOauth?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Format: date-time
|
|
204
|
+
* @description Timestamp when the token was created.
|
|
205
|
+
*/
|
|
206
|
+
createdAt?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Format: date-time
|
|
209
|
+
* @description Timestamp when the token was last updated.
|
|
210
|
+
*/
|
|
211
|
+
updatedAt?: string;
|
|
212
|
+
}[];
|
|
213
|
+
/** @description Total number of tokens across all pages. */
|
|
214
|
+
totalCount: number;
|
|
215
|
+
/** @description Current page number (zero-based). */
|
|
216
|
+
page: number;
|
|
217
|
+
/** @description Number of tokens per page. */
|
|
218
|
+
pageSize: number;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
/** Expired JWT token used or insufficient privilege */
|
|
223
|
+
401: {
|
|
224
|
+
content: {
|
|
225
|
+
"text/plain": string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
/** Internal server error */
|
|
229
|
+
500: {
|
|
230
|
+
content: {
|
|
231
|
+
"text/plain": string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
/** Generates a token for the authenticated user. */
|
|
237
|
+
generateToken: {
|
|
238
|
+
parameters: {
|
|
239
|
+
query: {
|
|
240
|
+
/** Name of the token. */
|
|
241
|
+
name: string;
|
|
242
|
+
/** Purpose for which the token is generated. */
|
|
243
|
+
purpose?: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
responses: {
|
|
247
|
+
/** Token generated */
|
|
248
|
+
201: {
|
|
249
|
+
content: {
|
|
250
|
+
"application/json": {
|
|
251
|
+
/** @description Tokens returned on the current page. */
|
|
252
|
+
tokens: {
|
|
253
|
+
/**
|
|
254
|
+
* Format: uuid
|
|
255
|
+
* @description Unique identifier for the token.
|
|
256
|
+
*/
|
|
257
|
+
id: string;
|
|
258
|
+
/**
|
|
259
|
+
* Format: uuid
|
|
260
|
+
* @description UUID of the user who owns the token.
|
|
261
|
+
*/
|
|
262
|
+
userId: string;
|
|
263
|
+
/** @description Authentication provider associated with the token. */
|
|
264
|
+
provider: string;
|
|
265
|
+
/** @description Access token value. */
|
|
266
|
+
accessToken?: string;
|
|
267
|
+
/** @description Refresh token value when applicable. */
|
|
268
|
+
refreshToken?: string;
|
|
269
|
+
/** @description Human-readable token name. */
|
|
270
|
+
name?: string;
|
|
271
|
+
/** @description Purpose for which the token was created. */
|
|
272
|
+
purpose?: string;
|
|
273
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
274
|
+
isOauth?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Format: date-time
|
|
277
|
+
* @description Timestamp when the token was created.
|
|
278
|
+
*/
|
|
279
|
+
createdAt?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Format: date-time
|
|
282
|
+
* @description Timestamp when the token was last updated.
|
|
283
|
+
*/
|
|
284
|
+
updatedAt?: string;
|
|
285
|
+
}[];
|
|
286
|
+
/** @description Total number of tokens across all pages. */
|
|
287
|
+
totalCount: number;
|
|
288
|
+
/** @description Current page number (zero-based). */
|
|
289
|
+
page: number;
|
|
290
|
+
/** @description Number of tokens per page. */
|
|
291
|
+
pageSize: number;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
/** Invalid request body or request param */
|
|
296
|
+
400: {
|
|
297
|
+
content: {
|
|
298
|
+
"text/plain": string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
/** Expired JWT token used or insufficient privilege */
|
|
302
|
+
401: {
|
|
303
|
+
content: {
|
|
304
|
+
"text/plain": string;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
/** Internal server error */
|
|
308
|
+
500: {
|
|
309
|
+
content: {
|
|
310
|
+
"text/plain": string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
/** Deletes a specific token for the authenticated user. */
|
|
316
|
+
deleteUserToken: {
|
|
317
|
+
parameters: {
|
|
318
|
+
query: {
|
|
319
|
+
/** ID of the token to delete. */
|
|
320
|
+
tokenId: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
responses: {
|
|
324
|
+
/** Token deleted */
|
|
325
|
+
200: {
|
|
326
|
+
content: {
|
|
327
|
+
"application/json": {
|
|
328
|
+
/** @description Tokens returned on the current page. */
|
|
329
|
+
tokens: {
|
|
330
|
+
/**
|
|
331
|
+
* Format: uuid
|
|
332
|
+
* @description Unique identifier for the token.
|
|
333
|
+
*/
|
|
334
|
+
id: string;
|
|
335
|
+
/**
|
|
336
|
+
* Format: uuid
|
|
337
|
+
* @description UUID of the user who owns the token.
|
|
338
|
+
*/
|
|
339
|
+
userId: string;
|
|
340
|
+
/** @description Authentication provider associated with the token. */
|
|
341
|
+
provider: string;
|
|
342
|
+
/** @description Access token value. */
|
|
343
|
+
accessToken?: string;
|
|
344
|
+
/** @description Refresh token value when applicable. */
|
|
345
|
+
refreshToken?: string;
|
|
346
|
+
/** @description Human-readable token name. */
|
|
347
|
+
name?: string;
|
|
348
|
+
/** @description Purpose for which the token was created. */
|
|
349
|
+
purpose?: string;
|
|
350
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
351
|
+
isOauth?: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* Format: date-time
|
|
354
|
+
* @description Timestamp when the token was created.
|
|
355
|
+
*/
|
|
356
|
+
createdAt?: string;
|
|
357
|
+
/**
|
|
358
|
+
* Format: date-time
|
|
359
|
+
* @description Timestamp when the token was last updated.
|
|
360
|
+
*/
|
|
361
|
+
updatedAt?: string;
|
|
362
|
+
}[];
|
|
363
|
+
/** @description Total number of tokens across all pages. */
|
|
364
|
+
totalCount: number;
|
|
365
|
+
/** @description Current page number (zero-based). */
|
|
366
|
+
page: number;
|
|
367
|
+
/** @description Number of tokens per page. */
|
|
368
|
+
pageSize: number;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
/** Invalid request body or request param */
|
|
373
|
+
400: {
|
|
374
|
+
content: {
|
|
375
|
+
"text/plain": string;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
/** Expired JWT token used or insufficient privilege */
|
|
379
|
+
401: {
|
|
380
|
+
content: {
|
|
381
|
+
"text/plain": string;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
/** Internal server error */
|
|
385
|
+
500: {
|
|
386
|
+
content: {
|
|
387
|
+
"text/plain": string;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
/** Retrieves a specific token by its ID. */
|
|
393
|
+
getUserTokensById: {
|
|
394
|
+
parameters: {
|
|
395
|
+
path: {
|
|
396
|
+
/** Token ID */
|
|
397
|
+
tokenId: string;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
responses: {
|
|
401
|
+
/** Token response */
|
|
402
|
+
200: {
|
|
403
|
+
content: {
|
|
404
|
+
"application/json": {
|
|
405
|
+
/**
|
|
406
|
+
* Format: uuid
|
|
407
|
+
* @description Unique identifier for the token.
|
|
408
|
+
*/
|
|
409
|
+
id: string;
|
|
410
|
+
/**
|
|
411
|
+
* Format: uuid
|
|
412
|
+
* @description UUID of the user who owns the token.
|
|
413
|
+
*/
|
|
414
|
+
userId: string;
|
|
415
|
+
/** @description Authentication provider associated with the token. */
|
|
416
|
+
provider: string;
|
|
417
|
+
/** @description Access token value. */
|
|
418
|
+
accessToken?: string;
|
|
419
|
+
/** @description Refresh token value when applicable. */
|
|
420
|
+
refreshToken?: string;
|
|
421
|
+
/** @description Human-readable token name. */
|
|
422
|
+
name?: string;
|
|
423
|
+
/** @description Purpose for which the token was created. */
|
|
424
|
+
purpose?: string;
|
|
425
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
426
|
+
isOauth?: boolean;
|
|
427
|
+
/**
|
|
428
|
+
* Format: date-time
|
|
429
|
+
* @description Timestamp when the token was created.
|
|
430
|
+
*/
|
|
431
|
+
createdAt?: string;
|
|
432
|
+
/**
|
|
433
|
+
* Format: date-time
|
|
434
|
+
* @description Timestamp when the token was last updated.
|
|
435
|
+
*/
|
|
436
|
+
updatedAt?: string;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
/** Expired JWT token used or insufficient privilege */
|
|
441
|
+
401: {
|
|
442
|
+
content: {
|
|
443
|
+
"text/plain": string;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
/** Result not found */
|
|
447
|
+
404: {
|
|
448
|
+
content: {
|
|
449
|
+
"text/plain": string;
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
/** Internal server error */
|
|
453
|
+
500: {
|
|
454
|
+
content: {
|
|
455
|
+
"text/plain": string;
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
/** Creates a non-expiring user token for provider admin use cases. */
|
|
461
|
+
issueIndefiniteLifetimeToken: {
|
|
462
|
+
parameters: {
|
|
463
|
+
query: {
|
|
464
|
+
/** UUID of the user to issue the indefinite token for. */
|
|
465
|
+
userId: string;
|
|
466
|
+
/** Authentication provider to associate with the indefinite token. */
|
|
467
|
+
provider: string;
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
responses: {
|
|
471
|
+
/** Token generated */
|
|
472
|
+
200: {
|
|
473
|
+
content: {
|
|
474
|
+
"application/json": {
|
|
475
|
+
/** @description Tokens returned on the current page. */
|
|
476
|
+
tokens: {
|
|
477
|
+
/**
|
|
478
|
+
* Format: uuid
|
|
479
|
+
* @description Unique identifier for the token.
|
|
480
|
+
*/
|
|
481
|
+
id: string;
|
|
482
|
+
/**
|
|
483
|
+
* Format: uuid
|
|
484
|
+
* @description UUID of the user who owns the token.
|
|
485
|
+
*/
|
|
486
|
+
userId: string;
|
|
487
|
+
/** @description Authentication provider associated with the token. */
|
|
488
|
+
provider: string;
|
|
489
|
+
/** @description Access token value. */
|
|
490
|
+
accessToken?: string;
|
|
491
|
+
/** @description Refresh token value when applicable. */
|
|
492
|
+
refreshToken?: string;
|
|
493
|
+
/** @description Human-readable token name. */
|
|
494
|
+
name?: string;
|
|
495
|
+
/** @description Purpose for which the token was created. */
|
|
496
|
+
purpose?: string;
|
|
497
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
498
|
+
isOauth?: boolean;
|
|
499
|
+
/**
|
|
500
|
+
* Format: date-time
|
|
501
|
+
* @description Timestamp when the token was created.
|
|
502
|
+
*/
|
|
503
|
+
createdAt?: string;
|
|
504
|
+
/**
|
|
505
|
+
* Format: date-time
|
|
506
|
+
* @description Timestamp when the token was last updated.
|
|
507
|
+
*/
|
|
508
|
+
updatedAt?: string;
|
|
509
|
+
}[];
|
|
510
|
+
/** @description Total number of tokens across all pages. */
|
|
511
|
+
totalCount: number;
|
|
512
|
+
/** @description Current page number (zero-based). */
|
|
513
|
+
page: number;
|
|
514
|
+
/** @description Number of tokens per page. */
|
|
515
|
+
pageSize: number;
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
/** Invalid request body or request param */
|
|
520
|
+
400: {
|
|
521
|
+
content: {
|
|
522
|
+
"text/plain": string;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
/** Expired JWT token used or insufficient privilege */
|
|
526
|
+
401: {
|
|
527
|
+
content: {
|
|
528
|
+
"text/plain": string;
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
/** Internal server error */
|
|
532
|
+
500: {
|
|
533
|
+
content: {
|
|
534
|
+
"text/plain": string;
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
interface external {
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export type { components, external, operations, paths };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var e={openapi:"3.0.0",info:{title:"token",description:"Documentation for Meshery Cloud REST APIs for user tokens and sessions",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"},version:"v1beta3"},servers:[{url:"https://cloud.layer5.io",description:"Meshery Cloud production server URL"},{url:"https://staging-cloud.layer5.io",description:"Meshery Cloud staging server URL"},{url:"http://localhost:9876",description:"Meshery Cloud development server URL"}],security:[{jwt:[]}],tags:[{name:"tokens",description:"Operations related to user tokens and sessions"}],paths:{"/api/identity/tokens":{get:{"x-internal":["cloud"],tags:["tokens"],summary:"Get tokens",operationId:"getUserTokens",description:"Retrieves tokens associated with the authenticated user.",parameters:[{name:"isOauth",in:"query",description:"Whether to retrieve OAuth-backed sessions instead of API tokens.",schema:{type:"boolean"}},{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}],responses:{200:{description:"Tokens response",content:{"application/json":{schema:{type:"object",description:"A paginated list of tokens.",required:["tokens","totalCount","page","pageSize"],properties:{tokens:{type:"array",items:{"x-go-type":"UserToken",type:"object",additionalProperties:false,description:"Represents a user-owned API token or OAuth session.",required:["id","userId","provider"],properties:{id:{description:"Unique identifier for the token.","x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},userId:{description:"UUID of the user who owns the token.","x-go-name":"UserID","x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},provider:{type:"string",description:"Authentication provider associated with the token.","x-oapi-codegen-extra-tags":{db:"provider",json:"provider"},maxLength:500,"x-order":3},accessToken:{type:"string",description:"Access token value.","x-oapi-codegen-extra-tags":{db:"access_token",json:"accessToken"},maxLength:4096,"x-order":4},refreshToken:{type:"string",description:"Refresh token value when applicable.","x-oapi-codegen-extra-tags":{db:"refresh_token",json:"refreshToken"},maxLength:4096,"x-order":5},name:{type:"string",description:"Human-readable token name.","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255,"x-order":6},purpose:{type:"string",description:"Purpose for which the token was created.","x-oapi-codegen-extra-tags":{db:"purpose",json:"purpose"},maxLength:500,"x-order":7},isOauth:{type:"boolean",description:"Whether this entry represents an OAuth session.","x-go-name":"IsOAuth","x-oapi-codegen-extra-tags":{db:"is_oauth",json:"isOauth"},"x-order":8},createdAt:{type:"string",format:"date-time",description:"Timestamp when the token was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},"x-order":9},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the token was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},"x-order":10}}},"x-order":1,description:"Tokens returned on the current page."},totalCount:{type:"integer",description:"Total number of tokens across all pages.",minimum:0,"x-go-type-skip-optional-pointer":true,"x-order":2,"x-oapi-codegen-extra-tags":{json:"totalCount"}},page:{type:"integer",description:"Current page number (zero-based).",minimum:0,"x-go-type-skip-optional-pointer":true,"x-order":3},pageSize:{type:"integer",description:"Number of tokens per page.",minimum:1,"x-go-type-skip-optional-pointer":true,"x-order":4,"x-oapi-codegen-extra-tags":{json:"pageSize"}}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["tokens"],summary:"Generate token",operationId:"generateToken",description:"Generates a token for the authenticated user.",parameters:[{name:"name",in:"query",description:"Name of the token.",required:true,schema:{type:"string",minLength:1,maxLength:255}},{name:"purpose",in:"query",description:"Purpose for which the token is generated.",schema:{type:"string",maxLength:500}}],responses:{201:{description:"Token generated",content:{"application/json":{schema:{type:"object",description:"A paginated list of tokens.",required:["tokens","totalCount","page","pageSize"],properties:{tokens:{type:"array",items:{"x-go-type":"UserToken",type:"object",additionalProperties:false,description:"Represents a user-owned API token or OAuth session.",required:["id","userId","provider"],properties:{id:{description:"Unique identifier for the token.","x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},userId:{description:"UUID of the user who owns the token.","x-go-name":"UserID","x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},provider:{type:"string",description:"Authentication provider associated with the token.","x-oapi-codegen-extra-tags":{db:"provider",json:"provider"},maxLength:500,"x-order":3},accessToken:{type:"string",description:"Access token value.","x-oapi-codegen-extra-tags":{db:"access_token",json:"accessToken"},maxLength:4096,"x-order":4},refreshToken:{type:"string",description:"Refresh token value when applicable.","x-oapi-codegen-extra-tags":{db:"refresh_token",json:"refreshToken"},maxLength:4096,"x-order":5},name:{type:"string",description:"Human-readable token name.","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255,"x-order":6},purpose:{type:"string",description:"Purpose for which the token was created.","x-oapi-codegen-extra-tags":{db:"purpose",json:"purpose"},maxLength:500,"x-order":7},isOauth:{type:"boolean",description:"Whether this entry represents an OAuth session.","x-go-name":"IsOAuth","x-oapi-codegen-extra-tags":{db:"is_oauth",json:"isOauth"},"x-order":8},createdAt:{type:"string",format:"date-time",description:"Timestamp when the token was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},"x-order":9},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the token was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},"x-order":10}}},"x-order":1,description:"Tokens returned on the current page."},totalCount:{type:"integer",description:"Total number of tokens across all pages.",minimum:0,"x-go-type-skip-optional-pointer":true,"x-order":2,"x-oapi-codegen-extra-tags":{json:"totalCount"}},page:{type:"integer",description:"Current page number (zero-based).",minimum:0,"x-go-type-skip-optional-pointer":true,"x-order":3},pageSize:{type:"integer",description:"Number of tokens per page.",minimum:1,"x-go-type-skip-optional-pointer":true,"x-order":4,"x-oapi-codegen-extra-tags":{json:"pageSize"}}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{"x-internal":["cloud"],tags:["tokens"],summary:"Delete token",operationId:"deleteUserToken",description:"Deletes a specific token for the authenticated user.",parameters:[{name:"tokenId",in:"query",description:"ID of the token to delete.",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{200:{description:"Token deleted",content:{"application/json":{schema:{type:"object",description:"A paginated list of tokens.",required:["tokens","totalCount","page","pageSize"],properties:{tokens:{type:"array",items:{"x-go-type":"UserToken",type:"object",additionalProperties:false,description:"Represents a user-owned API token or OAuth session.",required:["id","userId","provider"],properties:{id:{description:"Unique identifier for the token.","x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},userId:{description:"UUID of the user who owns the token.","x-go-name":"UserID","x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},provider:{type:"string",description:"Authentication provider associated with the token.","x-oapi-codegen-extra-tags":{db:"provider",json:"provider"},maxLength:500,"x-order":3},accessToken:{type:"string",description:"Access token value.","x-oapi-codegen-extra-tags":{db:"access_token",json:"accessToken"},maxLength:4096,"x-order":4},refreshToken:{type:"string",description:"Refresh token value when applicable.","x-oapi-codegen-extra-tags":{db:"refresh_token",json:"refreshToken"},maxLength:4096,"x-order":5},name:{type:"string",description:"Human-readable token name.","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255,"x-order":6},purpose:{type:"string",description:"Purpose for which the token was created.","x-oapi-codegen-extra-tags":{db:"purpose",json:"purpose"},maxLength:500,"x-order":7},isOauth:{type:"boolean",description:"Whether this entry represents an OAuth session.","x-go-name":"IsOAuth","x-oapi-codegen-extra-tags":{db:"is_oauth",json:"isOauth"},"x-order":8},createdAt:{type:"string",format:"date-time",description:"Timestamp when the token was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},"x-order":9},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the token was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},"x-order":10}}},"x-order":1,description:"Tokens returned on the current page."},totalCount:{type:"integer",description:"Total number of tokens across all pages.",minimum:0,"x-go-type-skip-optional-pointer":true,"x-order":2,"x-oapi-codegen-extra-tags":{json:"totalCount"}},page:{type:"integer",description:"Current page number (zero-based).",minimum:0,"x-go-type-skip-optional-pointer":true,"x-order":3},pageSize:{type:"integer",description:"Number of tokens per page.",minimum:1,"x-go-type-skip-optional-pointer":true,"x-order":4,"x-oapi-codegen-extra-tags":{json:"pageSize"}}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/tokens/{tokenId}":{get:{"x-internal":["cloud"],tags:["tokens"],summary:"Get token by ID",operationId:"getUserTokensById",description:"Retrieves a specific token by its ID.",parameters:[{name:"tokenId",in:"path",description:"Token ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{200:{description:"Token response",content:{"application/json":{schema:{type:"object",additionalProperties:false,description:"Represents a user-owned API token or OAuth session.",required:["id","userId","provider"],properties:{id:{description:"Unique identifier for the token.","x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},userId:{description:"UUID of the user who owns the token.","x-go-name":"UserID","x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},provider:{type:"string",description:"Authentication provider associated with the token.","x-oapi-codegen-extra-tags":{db:"provider",json:"provider"},maxLength:500,"x-order":3},accessToken:{type:"string",description:"Access token value.","x-oapi-codegen-extra-tags":{db:"access_token",json:"accessToken"},maxLength:4096,"x-order":4},refreshToken:{type:"string",description:"Refresh token value when applicable.","x-oapi-codegen-extra-tags":{db:"refresh_token",json:"refreshToken"},maxLength:4096,"x-order":5},name:{type:"string",description:"Human-readable token name.","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255,"x-order":6},purpose:{type:"string",description:"Purpose for which the token was created.","x-oapi-codegen-extra-tags":{db:"purpose",json:"purpose"},maxLength:500,"x-order":7},isOauth:{type:"boolean",description:"Whether this entry represents an OAuth session.","x-go-name":"IsOAuth","x-oapi-codegen-extra-tags":{db:"is_oauth",json:"isOauth"},"x-order":8},createdAt:{type:"string",format:"date-time",description:"Timestamp when the token was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},"x-order":9},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the token was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},"x-order":10}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/tokens/infinite":{get:{"x-internal":["cloud"],tags:["tokens"],summary:"Issue indefinite lifetime token",operationId:"issueIndefiniteLifetimeToken",description:"Creates a non-expiring user token for provider admin use cases.",parameters:[{name:"userId",in:"query",description:"UUID of the user to issue the indefinite token for.",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},{name:"provider",in:"query",description:"Authentication provider to associate with the indefinite token.",required:true,schema:{type:"string",maxLength:500}}],responses:{200:{description:"Token generated",content:{"application/json":{schema:{type:"object",description:"A paginated list of tokens.",required:["tokens","totalCount","page","pageSize"],properties:{tokens:{type:"array",items:{"x-go-type":"UserToken",type:"object",additionalProperties:false,description:"Represents a user-owned API token or OAuth session.",required:["id","userId","provider"],properties:{id:{description:"Unique identifier for the token.","x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},userId:{description:"UUID of the user who owns the token.","x-go-name":"UserID","x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},provider:{type:"string",description:"Authentication provider associated with the token.","x-oapi-codegen-extra-tags":{db:"provider",json:"provider"},maxLength:500,"x-order":3},accessToken:{type:"string",description:"Access token value.","x-oapi-codegen-extra-tags":{db:"access_token",json:"accessToken"},maxLength:4096,"x-order":4},refreshToken:{type:"string",description:"Refresh token value when applicable.","x-oapi-codegen-extra-tags":{db:"refresh_token",json:"refreshToken"},maxLength:4096,"x-order":5},name:{type:"string",description:"Human-readable token name.","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255,"x-order":6},purpose:{type:"string",description:"Purpose for which the token was created.","x-oapi-codegen-extra-tags":{db:"purpose",json:"purpose"},maxLength:500,"x-order":7},isOauth:{type:"boolean",description:"Whether this entry represents an OAuth session.","x-go-name":"IsOAuth","x-oapi-codegen-extra-tags":{db:"is_oauth",json:"isOauth"},"x-order":8},createdAt:{type:"string",format:"date-time",description:"Timestamp when the token was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},"x-order":9},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the token was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},"x-order":10}}},"x-order":1,description:"Tokens returned on the current page."},totalCount:{type:"integer",description:"Total number of tokens across all pages.",minimum:0,"x-go-type-skip-optional-pointer":true,"x-order":2,"x-oapi-codegen-extra-tags":{json:"totalCount"}},page:{type:"integer",description:"Current page number (zero-based).",minimum:0,"x-go-type-skip-optional-pointer":true,"x-order":3},pageSize:{type:"integer",description:"Number of tokens per page.",minimum:1,"x-go-type-skip-optional-pointer":true,"x-order":4,"x-oapi-codegen-extra-tags":{json:"pageSize"}}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}},components:{securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},responses:{400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{tokenId:{name:"tokenId",in:"path",description:"Token ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},tokenIdQuery:{name:"tokenId",in:"query",description:"ID of the token to delete.",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},userIdQuery:{name:"userId",in:"query",description:"UUID of the user to issue the indefinite token for.",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},providerQuery:{name:"provider",in:"query",description:"Authentication provider to associate with the indefinite token.",required:true,schema:{type:"string",maxLength:500}},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},isOauth:{name:"isOauth",in:"query",description:"Whether to retrieve OAuth-backed sessions instead of API tokens.",schema:{type:"boolean"}},name:{name:"name",in:"query",description:"Name of the token.",required:true,schema:{type:"string",minLength:1,maxLength:255}},purpose:{name:"purpose",in:"query",description:"Purpose for which the token is generated.",schema:{type:"string",maxLength:500}}},schemas:{UserToken:{type:"object",additionalProperties:false,description:"Represents a user-owned API token or OAuth session.",required:["id","userId","provider"],properties:{id:{description:"Unique identifier for the token.","x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},userId:{description:"UUID of the user who owns the token.","x-go-name":"UserID","x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},provider:{type:"string",description:"Authentication provider associated with the token.","x-oapi-codegen-extra-tags":{db:"provider",json:"provider"},maxLength:500,"x-order":3},accessToken:{type:"string",description:"Access token value.","x-oapi-codegen-extra-tags":{db:"access_token",json:"accessToken"},maxLength:4096,"x-order":4},refreshToken:{type:"string",description:"Refresh token value when applicable.","x-oapi-codegen-extra-tags":{db:"refresh_token",json:"refreshToken"},maxLength:4096,"x-order":5},name:{type:"string",description:"Human-readable token name.","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255,"x-order":6},purpose:{type:"string",description:"Purpose for which the token was created.","x-oapi-codegen-extra-tags":{db:"purpose",json:"purpose"},maxLength:500,"x-order":7},isOauth:{type:"boolean",description:"Whether this entry represents an OAuth session.","x-go-name":"IsOAuth","x-oapi-codegen-extra-tags":{db:"is_oauth",json:"isOauth"},"x-order":8},createdAt:{type:"string",format:"date-time",description:"Timestamp when the token was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},"x-order":9},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the token was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},"x-order":10}}},TokenPage:{type:"object",description:"A paginated list of tokens.",required:["tokens","totalCount","page","pageSize"],properties:{tokens:{type:"array",items:{"x-go-type":"UserToken",type:"object",additionalProperties:false,description:"Represents a user-owned API token or OAuth session.",required:["id","userId","provider"],properties:{id:{description:"Unique identifier for the token.","x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},userId:{description:"UUID of the user who owns the token.","x-go-name":"UserID","x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},provider:{type:"string",description:"Authentication provider associated with the token.","x-oapi-codegen-extra-tags":{db:"provider",json:"provider"},maxLength:500,"x-order":3},accessToken:{type:"string",description:"Access token value.","x-oapi-codegen-extra-tags":{db:"access_token",json:"accessToken"},maxLength:4096,"x-order":4},refreshToken:{type:"string",description:"Refresh token value when applicable.","x-oapi-codegen-extra-tags":{db:"refresh_token",json:"refreshToken"},maxLength:4096,"x-order":5},name:{type:"string",description:"Human-readable token name.","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255,"x-order":6},purpose:{type:"string",description:"Purpose for which the token was created.","x-oapi-codegen-extra-tags":{db:"purpose",json:"purpose"},maxLength:500,"x-order":7},isOauth:{type:"boolean",description:"Whether this entry represents an OAuth session.","x-go-name":"IsOAuth","x-oapi-codegen-extra-tags":{db:"is_oauth",json:"isOauth"},"x-order":8},createdAt:{type:"string",format:"date-time",description:"Timestamp when the token was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},"x-order":9},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the token was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},"x-order":10}}},"x-order":1,description:"Tokens returned on the current page."},totalCount:{type:"integer",description:"Total number of tokens across all pages.",minimum:0,"x-go-type-skip-optional-pointer":true,"x-order":2,"x-oapi-codegen-extra-tags":{json:"totalCount"}},page:{type:"integer",description:"Current page number (zero-based).",minimum:0,"x-go-type-skip-optional-pointer":true,"x-order":3},pageSize:{type:"integer",description:"Number of tokens per page.",minimum:1,"x-go-type-skip-optional-pointer":true,"x-order":4,"x-oapi-codegen-extra-tags":{json:"pageSize"}}}}}}},t=e;
|
|
2
|
+
module.exports=t;
|