@burdenoff/sdk-libs 2026.501.6

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 (103) hide show
  1. package/LICENSE +4 -0
  2. package/README.md +52 -0
  3. package/dist/chunk-NEREAHJ6.js +1 -0
  4. package/dist/chunk-YGVAZ3D7.js +2 -0
  5. package/dist/core/index.cjs +2 -0
  6. package/dist/core/index.d.cts +52 -0
  7. package/dist/core/index.d.ts +52 -0
  8. package/dist/core/index.js +1 -0
  9. package/dist/index.cjs +2 -0
  10. package/dist/index.d.cts +3 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/index.js +1 -0
  13. package/dist/module-JDbvil5h.d.cts +194 -0
  14. package/dist/module-JDbvil5h.d.ts +194 -0
  15. package/dist/modules/auth/index.cjs +71 -0
  16. package/dist/modules/auth/index.d.cts +94 -0
  17. package/dist/modules/auth/index.d.ts +94 -0
  18. package/dist/modules/auth/index.js +71 -0
  19. package/dist/modules/billing/index.cjs +203 -0
  20. package/dist/modules/billing/index.d.cts +377 -0
  21. package/dist/modules/billing/index.d.ts +377 -0
  22. package/dist/modules/billing/index.js +203 -0
  23. package/dist/modules/channels/index.cjs +108 -0
  24. package/dist/modules/channels/index.d.cts +146 -0
  25. package/dist/modules/channels/index.d.ts +146 -0
  26. package/dist/modules/channels/index.js +108 -0
  27. package/dist/modules/conversations/index.cjs +61 -0
  28. package/dist/modules/conversations/index.d.cts +112 -0
  29. package/dist/modules/conversations/index.d.ts +112 -0
  30. package/dist/modules/conversations/index.js +61 -0
  31. package/dist/modules/devportal/index.cjs +216 -0
  32. package/dist/modules/devportal/index.d.cts +303 -0
  33. package/dist/modules/devportal/index.d.ts +303 -0
  34. package/dist/modules/devportal/index.js +216 -0
  35. package/dist/modules/export/index.cjs +61 -0
  36. package/dist/modules/export/index.d.cts +169 -0
  37. package/dist/modules/export/index.d.ts +169 -0
  38. package/dist/modules/export/index.js +61 -0
  39. package/dist/modules/files/index.cjs +51 -0
  40. package/dist/modules/files/index.d.cts +102 -0
  41. package/dist/modules/files/index.d.ts +102 -0
  42. package/dist/modules/files/index.js +51 -0
  43. package/dist/modules/groups/index.cjs +80 -0
  44. package/dist/modules/groups/index.d.cts +168 -0
  45. package/dist/modules/groups/index.d.ts +168 -0
  46. package/dist/modules/groups/index.js +80 -0
  47. package/dist/modules/health/index.cjs +5 -0
  48. package/dist/modules/health/index.d.cts +18 -0
  49. package/dist/modules/health/index.d.ts +18 -0
  50. package/dist/modules/health/index.js +5 -0
  51. package/dist/modules/integrations/index.cjs +65 -0
  52. package/dist/modules/integrations/index.d.cts +120 -0
  53. package/dist/modules/integrations/index.d.ts +120 -0
  54. package/dist/modules/integrations/index.js +65 -0
  55. package/dist/modules/notifications/index.cjs +53 -0
  56. package/dist/modules/notifications/index.d.cts +140 -0
  57. package/dist/modules/notifications/index.d.ts +140 -0
  58. package/dist/modules/notifications/index.js +53 -0
  59. package/dist/modules/organizations/index.cjs +72 -0
  60. package/dist/modules/organizations/index.d.cts +88 -0
  61. package/dist/modules/organizations/index.d.ts +88 -0
  62. package/dist/modules/organizations/index.js +72 -0
  63. package/dist/modules/products/index.cjs +149 -0
  64. package/dist/modules/products/index.d.cts +361 -0
  65. package/dist/modules/products/index.d.ts +361 -0
  66. package/dist/modules/products/index.js +149 -0
  67. package/dist/modules/rbac/index.cjs +55 -0
  68. package/dist/modules/rbac/index.d.cts +100 -0
  69. package/dist/modules/rbac/index.d.ts +100 -0
  70. package/dist/modules/rbac/index.js +55 -0
  71. package/dist/modules/scheduler/index.cjs +61 -0
  72. package/dist/modules/scheduler/index.d.cts +121 -0
  73. package/dist/modules/scheduler/index.d.ts +121 -0
  74. package/dist/modules/scheduler/index.js +61 -0
  75. package/dist/modules/security/index.cjs +61 -0
  76. package/dist/modules/security/index.d.cts +110 -0
  77. package/dist/modules/security/index.d.ts +110 -0
  78. package/dist/modules/security/index.js +61 -0
  79. package/dist/modules/store/index.cjs +82 -0
  80. package/dist/modules/store/index.d.cts +139 -0
  81. package/dist/modules/store/index.d.ts +139 -0
  82. package/dist/modules/store/index.js +82 -0
  83. package/dist/modules/support/index.cjs +56 -0
  84. package/dist/modules/support/index.d.cts +147 -0
  85. package/dist/modules/support/index.d.ts +147 -0
  86. package/dist/modules/support/index.js +56 -0
  87. package/dist/modules/tags/index.cjs +55 -0
  88. package/dist/modules/tags/index.d.cts +131 -0
  89. package/dist/modules/tags/index.d.ts +131 -0
  90. package/dist/modules/tags/index.js +55 -0
  91. package/dist/modules/tours/index.cjs +37 -0
  92. package/dist/modules/tours/index.d.cts +61 -0
  93. package/dist/modules/tours/index.d.ts +61 -0
  94. package/dist/modules/tours/index.js +37 -0
  95. package/dist/modules/vibecontrols/index.cjs +1081 -0
  96. package/dist/modules/vibecontrols/index.d.cts +1483 -0
  97. package/dist/modules/vibecontrols/index.d.ts +1483 -0
  98. package/dist/modules/vibecontrols/index.js +1081 -0
  99. package/dist/modules/workspaces/index.cjs +91 -0
  100. package/dist/modules/workspaces/index.d.cts +128 -0
  101. package/dist/modules/workspaces/index.d.ts +128 -0
  102. package/dist/modules/workspaces/index.js +91 -0
  103. package/package.json +117 -0
@@ -0,0 +1,121 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
2
+ import 'graphql-request';
3
+
4
+ type JobStatus = 'ACTIVE' | 'ARCHIVED' | 'DISABLED' | 'ERROR' | 'PAUSED' | 'PENDING' | 'RUNNING';
5
+ type ScheduleType = 'CRON' | 'INTERVAL' | 'ONE_TIME' | 'RRULE';
6
+ interface ScheduledJob {
7
+ id: string;
8
+ name: string;
9
+ description?: string | null;
10
+ scheduleType: ScheduleType;
11
+ cronExpression?: string | null;
12
+ interval?: number | null;
13
+ intervalUnit?: string | null;
14
+ rrule?: string | null;
15
+ timezone?: string | null;
16
+ startDate?: string | null;
17
+ endDate?: string | null;
18
+ status: JobStatus;
19
+ workspaceId: string;
20
+ metadata?: Json;
21
+ payload?: Json;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ }
25
+ interface ScheduledJobConnection {
26
+ edges: Array<{
27
+ cursor: string;
28
+ node: ScheduledJob;
29
+ }>;
30
+ totalCount: number;
31
+ pageInfo: {
32
+ hasNextPage: boolean;
33
+ endCursor?: string | null;
34
+ };
35
+ }
36
+ interface CreateScheduledJobInput {
37
+ name: string;
38
+ scheduleType: ScheduleType;
39
+ description?: string;
40
+ cronExpression?: string;
41
+ interval?: number;
42
+ intervalUnit?: string;
43
+ rrule?: string;
44
+ timezone?: string;
45
+ startDate?: string;
46
+ endDate?: string;
47
+ metadata?: Json;
48
+ payload?: Json;
49
+ }
50
+ interface UpdateScheduledJobInput {
51
+ name?: string;
52
+ description?: string;
53
+ scheduleType?: ScheduleType;
54
+ cronExpression?: string;
55
+ interval?: number;
56
+ intervalUnit?: string;
57
+ rrule?: string;
58
+ timezone?: string;
59
+ startDate?: string;
60
+ endDate?: string;
61
+ status?: JobStatus;
62
+ metadata?: Json;
63
+ payload?: Json;
64
+ }
65
+ interface JobFilterInput {
66
+ status?: JobStatus;
67
+ scheduleType?: ScheduleType;
68
+ search?: string;
69
+ }
70
+ interface SchedulerPaginationInput {
71
+ cursor?: string;
72
+ limit?: number;
73
+ offset?: number;
74
+ sortBy?: string;
75
+ sortOrder?: 'asc' | 'desc';
76
+ }
77
+ interface JobExecution {
78
+ id: string;
79
+ scheduleId: string;
80
+ status: string;
81
+ attemptNumber: number;
82
+ startedAt?: string | null;
83
+ completedAt?: string | null;
84
+ errorMessage?: string | null;
85
+ result?: Json;
86
+ createdAt: string;
87
+ updatedAt: string;
88
+ }
89
+ interface JobExecutionConnection {
90
+ edges: Array<{
91
+ cursor: string;
92
+ node: JobExecution;
93
+ }>;
94
+ totalCount: number;
95
+ pageInfo: {
96
+ hasNextPage: boolean;
97
+ endCursor?: string | null;
98
+ };
99
+ }
100
+
101
+ interface ExecutionsApi {
102
+ list(jobId: string, pagination?: SchedulerPaginationInput): Promise<JobExecutionConnection>;
103
+ get(id: string): Promise<JobExecution | null>;
104
+ retry(executionId: string): Promise<JobExecution>;
105
+ }
106
+
107
+ interface JobsApi {
108
+ list(workspaceId: string, filter?: JobFilterInput, pagination?: SchedulerPaginationInput): Promise<ScheduledJobConnection>;
109
+ get(id: string): Promise<ScheduledJob | null>;
110
+ create(workspaceId: string, input: CreateScheduledJobInput): Promise<ScheduledJob>;
111
+ update(id: string, input: UpdateScheduledJobInput): Promise<ScheduledJob>;
112
+ delete(id: string): Promise<boolean>;
113
+ }
114
+
115
+ interface SchedulerApi {
116
+ jobs: JobsApi;
117
+ executions: ExecutionsApi;
118
+ }
119
+ declare const schedulerModule: SdkModule<SchedulerApi>;
120
+
121
+ export { type CreateScheduledJobInput, type ExecutionsApi, type JobExecution, type JobExecutionConnection, type JobFilterInput, type JobStatus, type JobsApi, type ScheduleType, type ScheduledJob, type ScheduledJobConnection, type SchedulerApi, type SchedulerPaginationInput, type UpdateScheduledJobInput, schedulerModule as default };
@@ -0,0 +1,61 @@
1
+ var i=`
2
+ fragment ScheduledJobFields on ScheduledJob {
3
+ id name description scheduleType cronExpression interval intervalUnit
4
+ rrule timezone startDate endDate status workspaceId metadata payload
5
+ createdAt updatedAt
6
+ }
7
+ `,r=`
8
+ fragment JobExecutionFields on JobExecution {
9
+ id scheduleId status attemptNumber startedAt completedAt
10
+ errorMessage result createdAt updatedAt
11
+ }
12
+ `,a=`
13
+ ${i}
14
+ query ScheduledJobs(
15
+ $workspaceId: ID!
16
+ $filter: JobFilterInput
17
+ $pagination: SchedulerPaginationInput
18
+ ) {
19
+ scheduledJobs(workspaceId: $workspaceId, filter: $filter, pagination: $pagination) {
20
+ edges { cursor node { ...ScheduledJobFields } }
21
+ totalCount
22
+ pageInfo { hasNextPage endCursor }
23
+ }
24
+ }
25
+ `,s=`
26
+ ${i}
27
+ query ScheduledJob($id: ID!) {
28
+ scheduledJob(id: $id) { ...ScheduledJobFields }
29
+ }
30
+ `,p=`
31
+ ${i}
32
+ mutation CreateScheduledJob($workspaceId: ID!, $input: CreateScheduledJobInput!) {
33
+ createScheduledJob(workspaceId: $workspaceId, input: $input) { ...ScheduledJobFields }
34
+ }
35
+ `,l=`
36
+ ${i}
37
+ mutation UpdateScheduledJob($id: ID!, $input: UpdateScheduledJobInput!) {
38
+ updateScheduledJob(id: $id, input: $input) { ...ScheduledJobFields }
39
+ }
40
+ `,b=`
41
+ mutation DeleteScheduledJob($id: ID!) { deleteScheduledJob(id: $id) }
42
+ `,J=`
43
+ ${r}
44
+ query JobExecutions($jobId: ID!, $pagination: SchedulerPaginationInput) {
45
+ jobExecutions(jobId: $jobId, pagination: $pagination) {
46
+ edges { cursor node { ...JobExecutionFields } }
47
+ totalCount
48
+ pageInfo { hasNextPage endCursor }
49
+ }
50
+ }
51
+ `,E=`
52
+ ${r}
53
+ query JobExecution($id: ID!) {
54
+ jobExecution(id: $id) { ...JobExecutionFields }
55
+ }
56
+ `,S=`
57
+ ${r}
58
+ mutation RetryJobExecution($executionId: ID!) {
59
+ retryJobExecution(executionId: $executionId) { ...JobExecutionFields }
60
+ }
61
+ `;function x(d){let{workspace:o}=d.gql;return {async list(e,t){return (await o.request(J,{jobId:e,pagination:t})).jobExecutions},async get(e){return (await o.request(E,{id:e})).jobExecution},async retry(e){return (await o.request(S,{executionId:e})).retryJobExecution}}}function h(d){let{workspace:o}=d.gql;return {async list(e,t,n){return (await o.request(a,{workspaceId:e,filter:t,pagination:n})).scheduledJobs},async get(e){return (await o.request(s,{id:e})).scheduledJob},async create(e,t){return (await o.request(p,{workspaceId:e,input:t})).createScheduledJob},async update(e,t){return (await o.request(l,{id:e,input:t})).updateScheduledJob},async delete(e){return (await o.request(b,{id:e})).deleteScheduledJob}}}var I={id:"scheduler",version:"1.0.0",displayName:"Scheduler",dependsOn:["auth"],attach(d){return {jobs:h(d),executions:x(d)}}},O=I;export{O as default};
@@ -0,0 +1,61 @@
1
+ 'use strict';var u=`
2
+ fragment VaultFields on Vault {
3
+ id name description scope scopeId status lockAfterMinutes createdAt updatedAt
4
+ }
5
+ `,n=`
6
+ fragment SecretFields on Secret {
7
+ id vaultId key name description type status isEphemeral expiresAt createdAt updatedAt
8
+ }
9
+ `,s=`
10
+ ${u}
11
+ query Vaults($filter: VaultFilterInput, $pagination: SecurityPaginationInput) {
12
+ getVaults(filter: $filter, pagination: $pagination) {
13
+ items { ...VaultFields }
14
+ total
15
+ hasMore
16
+ }
17
+ }
18
+ `,c=`
19
+ ${u}
20
+ query Vault($id: ID!) {
21
+ getVault(id: $id) { ...VaultFields }
22
+ }
23
+ `,o=`
24
+ ${u}
25
+ mutation CreateVault($input: CreateVaultInput!) {
26
+ createVault(input: $input) { ...VaultFields }
27
+ }
28
+ `,l=`
29
+ ${u}
30
+ mutation UpdateVault($id: ID!, $input: UpdateVaultInput!) {
31
+ updateVault(id: $id, input: $input) { ...VaultFields }
32
+ }
33
+ `,d=`
34
+ mutation DeleteVault($id: ID!) { deleteVault(id: $id) }
35
+ `,S=`
36
+ ${n}
37
+ query Secrets($vaultId: ID!, $filter: SecretFilterInput, $pagination: SecurityPaginationInput) {
38
+ getSecrets(vaultId: $vaultId, filter: $filter, pagination: $pagination) {
39
+ items { ...SecretFields }
40
+ total
41
+ hasMore
42
+ }
43
+ }
44
+ `,V=`
45
+ ${n}
46
+ query Secret($id: ID!) {
47
+ getSecret(id: $id) { ...SecretFields }
48
+ }
49
+ `,E=`
50
+ ${n}
51
+ mutation CreateSecret($input: CreateSecretInput!) {
52
+ createSecret(input: $input) { ...SecretFields }
53
+ }
54
+ `,I=`
55
+ ${n}
56
+ mutation UpdateSecret($id: ID!, $input: UpdateSecretInput!) {
57
+ updateSecret(id: $id, input: $input) { ...SecretFields }
58
+ }
59
+ `,m=`
60
+ mutation DeleteSecret($id: ID!) { deleteSecret(id: $id) }
61
+ `;function T(r){let{workspace:a}=r.gql;return {async list(t,e,i){return (await a.request(S,{vaultId:t,filter:e,pagination:i})).getSecrets},async get(t){return (await a.request(V,{id:t})).getSecret},async set(t){return (await a.request(E,{input:t})).createSecret},async update(t,e){return (await a.request(I,{id:t,input:e})).updateSecret},async delete(t){return (await a.request(m,{id:t})).deleteSecret}}}function y(r){let{workspace:a}=r.gql;return {async list(t,e){return (await a.request(s,{filter:t,pagination:e})).getVaults},async get(t){return (await a.request(c,{id:t})).getVault},async create(t){return (await a.request(o,{input:t})).createVault},async update(t,e){return (await a.request(l,{id:t,input:e})).updateVault},async delete(t){return (await a.request(d,{id:t})).deleteVault}}}var A={id:"security",version:"1.0.0",displayName:"Security",dependsOn:["auth"],attach(r){return {vaults:y(r),secrets:T(r)}}},R=A;module.exports=R;
@@ -0,0 +1,110 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
2
+ import 'graphql-request';
3
+
4
+ type VaultStatus = 'ACTIVE' | 'LOCKED' | 'ARCHIVED' | 'DELETED';
5
+ type VaultScope = 'WORKSPACE' | 'PROJECT' | 'USER';
6
+ interface Vault {
7
+ id: string;
8
+ name: string;
9
+ description?: string | null;
10
+ scope: VaultScope;
11
+ scopeId?: string | null;
12
+ status: VaultStatus;
13
+ lockAfterMinutes?: number | null;
14
+ createdAt: string;
15
+ updatedAt?: string | null;
16
+ }
17
+ interface VaultList {
18
+ items: Vault[];
19
+ total: number;
20
+ hasMore: boolean;
21
+ }
22
+ interface VaultFilterInput {
23
+ scope?: VaultScope;
24
+ status?: VaultStatus;
25
+ search?: string;
26
+ }
27
+ interface CreateVaultInput {
28
+ name: string;
29
+ scope: VaultScope;
30
+ scopeId?: string;
31
+ description?: string;
32
+ lockAfterMinutes?: number;
33
+ }
34
+ interface UpdateVaultInput {
35
+ name?: string;
36
+ description?: string;
37
+ status?: VaultStatus;
38
+ lockAfterMinutes?: number;
39
+ }
40
+ interface SecurityPaginationInput {
41
+ limit?: number;
42
+ offset?: number;
43
+ }
44
+ type SecretStatus = 'ACTIVE' | 'EXPIRED' | 'REVOKED' | 'ROTATING';
45
+ type SecretType = 'STRING' | 'JSON' | 'KEY_VALUE' | 'CERTIFICATE';
46
+ interface Secret {
47
+ id: string;
48
+ vaultId?: string | null;
49
+ key: string;
50
+ name?: string | null;
51
+ description?: string | null;
52
+ type: SecretType;
53
+ status: SecretStatus;
54
+ isEphemeral?: boolean | null;
55
+ expiresAt?: string | null;
56
+ createdAt: string;
57
+ updatedAt?: string | null;
58
+ }
59
+ interface SecretList {
60
+ items: Secret[];
61
+ total: number;
62
+ hasMore: boolean;
63
+ }
64
+ interface SecretFilterInput {
65
+ type?: SecretType;
66
+ status?: SecretStatus;
67
+ search?: string;
68
+ }
69
+ interface CreateSecretInput {
70
+ vaultId: string;
71
+ key: string;
72
+ name?: string;
73
+ value: string;
74
+ type?: SecretType;
75
+ description?: string;
76
+ expiresAt?: string;
77
+ metadata?: Json;
78
+ }
79
+ interface UpdateSecretInput {
80
+ name?: string;
81
+ value?: string;
82
+ description?: string;
83
+ status?: SecretStatus;
84
+ expiresAt?: string;
85
+ metadata?: Json;
86
+ }
87
+
88
+ interface SecretsApi {
89
+ list(vaultId: string, filter?: SecretFilterInput, pagination?: SecurityPaginationInput): Promise<SecretList>;
90
+ get(id: string): Promise<Secret | null>;
91
+ set(input: CreateSecretInput): Promise<Secret>;
92
+ update(id: string, input: UpdateSecretInput): Promise<Secret>;
93
+ delete(id: string): Promise<boolean>;
94
+ }
95
+
96
+ interface VaultsApi {
97
+ list(filter?: VaultFilterInput, pagination?: SecurityPaginationInput): Promise<VaultList>;
98
+ get(id: string): Promise<Vault | null>;
99
+ create(input: CreateVaultInput): Promise<Vault>;
100
+ update(id: string, input: UpdateVaultInput): Promise<Vault>;
101
+ delete(id: string): Promise<boolean>;
102
+ }
103
+
104
+ interface SecurityApi {
105
+ vaults: VaultsApi;
106
+ secrets: SecretsApi;
107
+ }
108
+ declare const securityModule: SdkModule<SecurityApi>;
109
+
110
+ export { type CreateSecretInput, type CreateVaultInput, type Secret, type SecretFilterInput, type SecretList, type SecretStatus, type SecretType, type SecretsApi, type SecurityApi, type SecurityPaginationInput, type UpdateSecretInput, type UpdateVaultInput, type Vault, type VaultFilterInput, type VaultList, type VaultScope, type VaultStatus, type VaultsApi, securityModule as default };
@@ -0,0 +1,110 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
2
+ import 'graphql-request';
3
+
4
+ type VaultStatus = 'ACTIVE' | 'LOCKED' | 'ARCHIVED' | 'DELETED';
5
+ type VaultScope = 'WORKSPACE' | 'PROJECT' | 'USER';
6
+ interface Vault {
7
+ id: string;
8
+ name: string;
9
+ description?: string | null;
10
+ scope: VaultScope;
11
+ scopeId?: string | null;
12
+ status: VaultStatus;
13
+ lockAfterMinutes?: number | null;
14
+ createdAt: string;
15
+ updatedAt?: string | null;
16
+ }
17
+ interface VaultList {
18
+ items: Vault[];
19
+ total: number;
20
+ hasMore: boolean;
21
+ }
22
+ interface VaultFilterInput {
23
+ scope?: VaultScope;
24
+ status?: VaultStatus;
25
+ search?: string;
26
+ }
27
+ interface CreateVaultInput {
28
+ name: string;
29
+ scope: VaultScope;
30
+ scopeId?: string;
31
+ description?: string;
32
+ lockAfterMinutes?: number;
33
+ }
34
+ interface UpdateVaultInput {
35
+ name?: string;
36
+ description?: string;
37
+ status?: VaultStatus;
38
+ lockAfterMinutes?: number;
39
+ }
40
+ interface SecurityPaginationInput {
41
+ limit?: number;
42
+ offset?: number;
43
+ }
44
+ type SecretStatus = 'ACTIVE' | 'EXPIRED' | 'REVOKED' | 'ROTATING';
45
+ type SecretType = 'STRING' | 'JSON' | 'KEY_VALUE' | 'CERTIFICATE';
46
+ interface Secret {
47
+ id: string;
48
+ vaultId?: string | null;
49
+ key: string;
50
+ name?: string | null;
51
+ description?: string | null;
52
+ type: SecretType;
53
+ status: SecretStatus;
54
+ isEphemeral?: boolean | null;
55
+ expiresAt?: string | null;
56
+ createdAt: string;
57
+ updatedAt?: string | null;
58
+ }
59
+ interface SecretList {
60
+ items: Secret[];
61
+ total: number;
62
+ hasMore: boolean;
63
+ }
64
+ interface SecretFilterInput {
65
+ type?: SecretType;
66
+ status?: SecretStatus;
67
+ search?: string;
68
+ }
69
+ interface CreateSecretInput {
70
+ vaultId: string;
71
+ key: string;
72
+ name?: string;
73
+ value: string;
74
+ type?: SecretType;
75
+ description?: string;
76
+ expiresAt?: string;
77
+ metadata?: Json;
78
+ }
79
+ interface UpdateSecretInput {
80
+ name?: string;
81
+ value?: string;
82
+ description?: string;
83
+ status?: SecretStatus;
84
+ expiresAt?: string;
85
+ metadata?: Json;
86
+ }
87
+
88
+ interface SecretsApi {
89
+ list(vaultId: string, filter?: SecretFilterInput, pagination?: SecurityPaginationInput): Promise<SecretList>;
90
+ get(id: string): Promise<Secret | null>;
91
+ set(input: CreateSecretInput): Promise<Secret>;
92
+ update(id: string, input: UpdateSecretInput): Promise<Secret>;
93
+ delete(id: string): Promise<boolean>;
94
+ }
95
+
96
+ interface VaultsApi {
97
+ list(filter?: VaultFilterInput, pagination?: SecurityPaginationInput): Promise<VaultList>;
98
+ get(id: string): Promise<Vault | null>;
99
+ create(input: CreateVaultInput): Promise<Vault>;
100
+ update(id: string, input: UpdateVaultInput): Promise<Vault>;
101
+ delete(id: string): Promise<boolean>;
102
+ }
103
+
104
+ interface SecurityApi {
105
+ vaults: VaultsApi;
106
+ secrets: SecretsApi;
107
+ }
108
+ declare const securityModule: SdkModule<SecurityApi>;
109
+
110
+ export { type CreateSecretInput, type CreateVaultInput, type Secret, type SecretFilterInput, type SecretList, type SecretStatus, type SecretType, type SecretsApi, type SecurityApi, type SecurityPaginationInput, type UpdateSecretInput, type UpdateVaultInput, type Vault, type VaultFilterInput, type VaultList, type VaultScope, type VaultStatus, type VaultsApi, securityModule as default };
@@ -0,0 +1,61 @@
1
+ var u=`
2
+ fragment VaultFields on Vault {
3
+ id name description scope scopeId status lockAfterMinutes createdAt updatedAt
4
+ }
5
+ `,n=`
6
+ fragment SecretFields on Secret {
7
+ id vaultId key name description type status isEphemeral expiresAt createdAt updatedAt
8
+ }
9
+ `,c=`
10
+ ${u}
11
+ query Vaults($filter: VaultFilterInput, $pagination: SecurityPaginationInput) {
12
+ getVaults(filter: $filter, pagination: $pagination) {
13
+ items { ...VaultFields }
14
+ total
15
+ hasMore
16
+ }
17
+ }
18
+ `,o=`
19
+ ${u}
20
+ query Vault($id: ID!) {
21
+ getVault(id: $id) { ...VaultFields }
22
+ }
23
+ `,l=`
24
+ ${u}
25
+ mutation CreateVault($input: CreateVaultInput!) {
26
+ createVault(input: $input) { ...VaultFields }
27
+ }
28
+ `,d=`
29
+ ${u}
30
+ mutation UpdateVault($id: ID!, $input: UpdateVaultInput!) {
31
+ updateVault(id: $id, input: $input) { ...VaultFields }
32
+ }
33
+ `,S=`
34
+ mutation DeleteVault($id: ID!) { deleteVault(id: $id) }
35
+ `,V=`
36
+ ${n}
37
+ query Secrets($vaultId: ID!, $filter: SecretFilterInput, $pagination: SecurityPaginationInput) {
38
+ getSecrets(vaultId: $vaultId, filter: $filter, pagination: $pagination) {
39
+ items { ...SecretFields }
40
+ total
41
+ hasMore
42
+ }
43
+ }
44
+ `,E=`
45
+ ${n}
46
+ query Secret($id: ID!) {
47
+ getSecret(id: $id) { ...SecretFields }
48
+ }
49
+ `,I=`
50
+ ${n}
51
+ mutation CreateSecret($input: CreateSecretInput!) {
52
+ createSecret(input: $input) { ...SecretFields }
53
+ }
54
+ `,m=`
55
+ ${n}
56
+ mutation UpdateSecret($id: ID!, $input: UpdateSecretInput!) {
57
+ updateSecret(id: $id, input: $input) { ...SecretFields }
58
+ }
59
+ `,T=`
60
+ mutation DeleteSecret($id: ID!) { deleteSecret(id: $id) }
61
+ `;function y(r){let{workspace:a}=r.gql;return {async list(t,e,i){return (await a.request(V,{vaultId:t,filter:e,pagination:i})).getSecrets},async get(t){return (await a.request(E,{id:t})).getSecret},async set(t){return (await a.request(I,{input:t})).createSecret},async update(t,e){return (await a.request(m,{id:t,input:e})).updateSecret},async delete(t){return (await a.request(T,{id:t})).deleteSecret}}}function A(r){let{workspace:a}=r.gql;return {async list(t,e){return (await a.request(c,{filter:t,pagination:e})).getVaults},async get(t){return (await a.request(o,{id:t})).getVault},async create(t){return (await a.request(l,{input:t})).createVault},async update(t,e){return (await a.request(d,{id:t,input:e})).updateVault},async delete(t){return (await a.request(S,{id:t})).deleteVault}}}var g={id:"security",version:"1.0.0",displayName:"Security",dependsOn:["auth"],attach(r){return {vaults:A(r),secrets:y(r)}}},q=g;export{q as default};
@@ -0,0 +1,82 @@
1
+ 'use strict';var n=`
2
+ fragment StoreProductFields on StoreProduct {
3
+ id name description price currency type status activeInstallCount
4
+ publisher { name }
5
+ }
6
+ `,i=`
7
+ fragment CartFields on Cart {
8
+ id currency subtotal total itemCount isEmpty
9
+ items { id productId quantity metadata }
10
+ }
11
+ `,d=`
12
+ fragment OrderFields on Order {
13
+ id status total currency paidAt billingAccountId createdAt
14
+ lineItems { productId quantity unitPrice }
15
+ }
16
+ `,c=`
17
+ ${n}
18
+ query SearchStore($query: String!, $filters: StoreFiltersInput) {
19
+ searchStore(query: $query, filters: $filters) { ...StoreProductFields }
20
+ }
21
+ `,l=`
22
+ ${i}
23
+ query MyCart {
24
+ myCart { ...CartFields }
25
+ }
26
+ `,u=`
27
+ ${i}
28
+ mutation AddToCart($input: AddToCartInput!) {
29
+ addToCart(input: $input) { ...CartFields }
30
+ }
31
+ `,p=`
32
+ ${i}
33
+ mutation RemoveFromCart($cartId: ID!, $itemId: ID!) {
34
+ removeFromCart(cartId: $cartId, itemId: $itemId) { ...CartFields }
35
+ }
36
+ `,m=`
37
+ ${i}
38
+ mutation ClearCart($cartId: ID!) {
39
+ clearCart(cartId: $cartId) { ...CartFields }
40
+ }
41
+ `,I=`
42
+ ${d}
43
+ query GetOrders($limit: Int, $offset: Int) {
44
+ getOrders(limit: $limit, offset: $offset) { ...OrderFields }
45
+ }
46
+ `,C=`
47
+ ${d}
48
+ query GetOrder($id: ID!) {
49
+ getOrder(id: $id) { ...OrderFields }
50
+ }
51
+ `,A=`
52
+ query GetInstalledProducts($workspaceId: ID!) {
53
+ getInstalledProducts(workspaceId: $workspaceId) {
54
+ id status installedAt lastUsedAt
55
+ application { id name }
56
+ }
57
+ }
58
+ `,S=`
59
+ mutation UninstallProduct($installationId: ID!) {
60
+ uninstallProduct(installationId: $installationId) { success }
61
+ }
62
+ `,P=`
63
+ query GetLicenses($entitlementId: ID!) {
64
+ getLicenses(entitlementId: $entitlementId) {
65
+ id status validFrom expiresAt
66
+ }
67
+ }
68
+ `,f=`
69
+ query GetPublisher($id: ID!) {
70
+ getPublisher(id: $id) {
71
+ id name description websiteUrl contactEmail isVerified createdAt
72
+ }
73
+ }
74
+ `,y=`
75
+ ${n}
76
+ query GetPublisherProducts($publisherId: ID!, $limit: Int, $offset: Int) {
77
+ getPublisherProducts(publisherId: $publisherId, limit: $limit, offset: $offset) {
78
+ products { ...StoreProductFields }
79
+ totalCount
80
+ }
81
+ }
82
+ `;function g(e){let{global:r}=e.gql;return {async get(){return (await r.request(l)).myCart},async add(t){return (await r.request(u,{input:t})).addToCart},async remove(t,s){return (await r.request(p,{cartId:t,itemId:s})).removeFromCart},async clear(t){return (await r.request(m,{cartId:t})).clearCart}}}function T(e){let{global:r}=e.gql;return {async list(t){return (await r.request(A,{workspaceId:t})).getInstalledProducts},async uninstall(t){return (await r.request(S,{installationId:t})).uninstallProduct}}}function R(e){let{global:r}=e.gql;return {async list(t){return (await r.request(P,{entitlementId:t})).getLicenses}}}function h(e){let{global:r}=e.gql;return {async list(t){return (await r.request(I,{limit:t?.limit,offset:t?.offset})).getOrders},async get(t){return (await r.request(C,{id:t})).getOrder}}}function O(e){let{global:r}=e.gql;return {async get(t){return (await r.request(f,{id:t})).getPublisher},async products(t,s){return (await r.request(y,{publisherId:t,limit:s?.limit,offset:s?.offset})).getPublisherProducts}}}function b(e){let{global:r}=e.gql;return {async search(t,s){return (await r.request(c,{query:t,filters:s})).searchStore}}}var x={id:"store",version:"1.0.0",displayName:"Store",dependsOn:["auth"],attach(e){return {search:b(e),cart:g(e),orders:h(e),installed:T(e),licenses:R(e),publisher:O(e)}}},tt=x;module.exports=tt;