@rippling/rippling-sdk 0.2.0-alpha.96 → 0.2.0-alpha.98

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 (113) hide show
  1. package/client.d.mts +37 -4
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +37 -4
  4. package/client.d.ts.map +1 -1
  5. package/client.js +33 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +34 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +2 -1
  10. package/resources/draft-transitions.d.mts +474 -0
  11. package/resources/draft-transitions.d.mts.map +1 -0
  12. package/resources/draft-transitions.d.ts +474 -0
  13. package/resources/draft-transitions.d.ts.map +1 -0
  14. package/resources/draft-transitions.js +25 -0
  15. package/resources/draft-transitions.js.map +1 -0
  16. package/resources/draft-transitions.mjs +21 -0
  17. package/resources/draft-transitions.mjs.map +1 -0
  18. package/resources/index.d.mts +7 -2
  19. package/resources/index.d.mts.map +1 -1
  20. package/resources/index.d.ts +7 -2
  21. package/resources/index.d.ts.map +1 -1
  22. package/resources/index.js +12 -2
  23. package/resources/index.js.map +1 -1
  24. package/resources/index.mjs +6 -1
  25. package/resources/index.mjs.map +1 -1
  26. package/resources/metadata/index.d.mts +1 -1
  27. package/resources/metadata/index.d.mts.map +1 -1
  28. package/resources/metadata/index.d.ts +1 -1
  29. package/resources/metadata/index.d.ts.map +1 -1
  30. package/resources/metadata/index.js.map +1 -1
  31. package/resources/metadata/index.mjs +1 -1
  32. package/resources/metadata/index.mjs.map +1 -1
  33. package/resources/metadata/metadata.d.mts +47 -1
  34. package/resources/metadata/metadata.d.mts.map +1 -1
  35. package/resources/metadata/metadata.d.ts +47 -1
  36. package/resources/metadata/metadata.d.ts.map +1 -1
  37. package/resources/metadata/metadata.js +15 -0
  38. package/resources/metadata/metadata.js.map +1 -1
  39. package/resources/metadata/metadata.mjs +15 -0
  40. package/resources/metadata/metadata.mjs.map +1 -1
  41. package/resources/package-managed-installs.d.mts +119 -0
  42. package/resources/package-managed-installs.d.mts.map +1 -0
  43. package/resources/package-managed-installs.d.ts +119 -0
  44. package/resources/package-managed-installs.d.ts.map +1 -0
  45. package/resources/package-managed-installs.js +26 -0
  46. package/resources/package-managed-installs.js.map +1 -0
  47. package/resources/package-managed-installs.mjs +22 -0
  48. package/resources/package-managed-installs.mjs.map +1 -0
  49. package/resources/sandboxes.d.mts +224 -1
  50. package/resources/sandboxes.d.mts.map +1 -1
  51. package/resources/sandboxes.d.ts +224 -1
  52. package/resources/sandboxes.d.ts.map +1 -1
  53. package/resources/sandboxes.js +6 -0
  54. package/resources/sandboxes.js.map +1 -1
  55. package/resources/sandboxes.mjs +6 -0
  56. package/resources/sandboxes.mjs.map +1 -1
  57. package/resources/sites.d.mts +3 -0
  58. package/resources/sites.d.mts.map +1 -1
  59. package/resources/sites.d.ts +3 -0
  60. package/resources/sites.d.ts.map +1 -1
  61. package/resources/sites.js +3 -0
  62. package/resources/sites.js.map +1 -1
  63. package/resources/sites.mjs +3 -0
  64. package/resources/sites.mjs.map +1 -1
  65. package/resources/variable-compensation-payout-labels.d.mts +155 -0
  66. package/resources/variable-compensation-payout-labels.d.mts.map +1 -0
  67. package/resources/variable-compensation-payout-labels.d.ts +155 -0
  68. package/resources/variable-compensation-payout-labels.d.ts.map +1 -0
  69. package/resources/variable-compensation-payout-labels.js +41 -0
  70. package/resources/variable-compensation-payout-labels.js.map +1 -0
  71. package/resources/variable-compensation-payout-labels.mjs +37 -0
  72. package/resources/variable-compensation-payout-labels.mjs.map +1 -0
  73. package/resources/variable-compensation-payout-types.d.mts +334 -0
  74. package/resources/variable-compensation-payout-types.d.mts.map +1 -0
  75. package/resources/variable-compensation-payout-types.d.ts +334 -0
  76. package/resources/variable-compensation-payout-types.d.ts.map +1 -0
  77. package/resources/variable-compensation-payout-types.js +52 -0
  78. package/resources/variable-compensation-payout-types.js.map +1 -0
  79. package/resources/variable-compensation-payout-types.mjs +48 -0
  80. package/resources/variable-compensation-payout-types.mjs.map +1 -0
  81. package/resources/variable-compensation-payout-writes.d.mts +6 -17
  82. package/resources/variable-compensation-payout-writes.d.mts.map +1 -1
  83. package/resources/variable-compensation-payout-writes.d.ts +6 -17
  84. package/resources/variable-compensation-payout-writes.d.ts.map +1 -1
  85. package/resources/variable-compensation-payout-writes.js +2 -1
  86. package/resources/variable-compensation-payout-writes.js.map +1 -1
  87. package/resources/variable-compensation-payout-writes.mjs +2 -1
  88. package/resources/variable-compensation-payout-writes.mjs.map +1 -1
  89. package/resources/variable-compensation-payouts.d.mts +501 -0
  90. package/resources/variable-compensation-payouts.d.mts.map +1 -0
  91. package/resources/variable-compensation-payouts.d.ts +501 -0
  92. package/resources/variable-compensation-payouts.d.ts.map +1 -0
  93. package/resources/variable-compensation-payouts.js +41 -0
  94. package/resources/variable-compensation-payouts.js.map +1 -0
  95. package/resources/variable-compensation-payouts.mjs +37 -0
  96. package/resources/variable-compensation-payouts.mjs.map +1 -0
  97. package/src/client.ts +130 -1
  98. package/src/resources/draft-transitions.ts +583 -0
  99. package/src/resources/index.ts +50 -1
  100. package/src/resources/metadata/index.ts +7 -1
  101. package/src/resources/metadata/metadata.ts +54 -0
  102. package/src/resources/package-managed-installs.ts +156 -0
  103. package/src/resources/sandboxes.ts +265 -0
  104. package/src/resources/sites.ts +3 -0
  105. package/src/resources/variable-compensation-payout-labels.ts +227 -0
  106. package/src/resources/variable-compensation-payout-types.ts +440 -0
  107. package/src/resources/variable-compensation-payout-writes.ts +6 -20
  108. package/src/resources/variable-compensation-payouts.ts +702 -0
  109. package/src/version.ts +1 -1
  110. package/version.d.mts +1 -1
  111. package/version.d.ts +1 -1
  112. package/version.js +1 -1
  113. package/version.mjs +1 -1
@@ -57,6 +57,25 @@ export class Metadata extends APIResource {
57
57
  ): APIPromise<MetadataExtractResponse> {
58
58
  return this._client.get('/metadata/extract/', { query, ...options });
59
59
  }
60
+
61
+ /**
62
+ * Extract exact metadata components and their complete dependency closure.
63
+ *
64
+ * Requires the Metadata entitlement.
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * const response = await client.metadata.extractByIdentifiers(
69
+ * { identifiers: [{ foo: 'bar' }] },
70
+ * );
71
+ * ```
72
+ */
73
+ extractByIdentifiers(
74
+ body: MetadataExtractByIdentifiersParams,
75
+ options?: RequestOptions,
76
+ ): APIPromise<MetadataExtractByIdentifiersResponse> {
77
+ return this._client.post('/metadata/extract/', { body, ...options });
78
+ }
60
79
  }
61
80
 
62
81
  export interface MetadataExtractResponse {
@@ -127,6 +146,35 @@ export namespace MetadataExtractResponse {
127
146
  }
128
147
  }
129
148
 
149
+ export interface MetadataExtractByIdentifiersResponse {
150
+ /**
151
+ * Full component configs needed to recreate the requested roots.
152
+ */
153
+ component_configs: Array<MetadataExtractByIdentifiersResponse.ComponentConfig>;
154
+
155
+ external_managed_dependencies: Array<{ [key: string]: unknown }>;
156
+
157
+ /**
158
+ * Topological install order for the extracted package.
159
+ */
160
+ install_order: Array<{ [key: string]: unknown }>;
161
+ }
162
+
163
+ export namespace MetadataExtractByIdentifiersResponse {
164
+ /**
165
+ * A metadata component config. The `type` field selects the concrete component
166
+ * schema. Fetch type-specific fields from GET /metadata/schema/?type=<TYPE>.
167
+ */
168
+ export interface ComponentConfig {
169
+ /**
170
+ * Metadata component type, such as CUSTOM_OBJECT or CUSTOM_OBJECT_FIELD.
171
+ */
172
+ type: string;
173
+
174
+ [k: string]: unknown;
175
+ }
176
+ }
177
+
130
178
  export interface MetadataExtractParams {
131
179
  /**
132
180
  * Maximum search results to return when q is provided.
@@ -139,6 +187,10 @@ export interface MetadataExtractParams {
139
187
  q?: string;
140
188
  }
141
189
 
190
+ export interface MetadataExtractByIdentifiersParams {
191
+ identifiers: Array<{ [key: string]: unknown }>;
192
+ }
193
+
142
194
  Metadata.Types = Types;
143
195
  Metadata.Schema = Schema;
144
196
  Metadata.Components = Components;
@@ -148,7 +200,9 @@ Metadata.DeploymentRuns = DeploymentRuns;
148
200
  export declare namespace Metadata {
149
201
  export {
150
202
  type MetadataExtractResponse as MetadataExtractResponse,
203
+ type MetadataExtractByIdentifiersResponse as MetadataExtractByIdentifiersResponse,
151
204
  type MetadataExtractParams as MetadataExtractParams,
205
+ type MetadataExtractByIdentifiersParams as MetadataExtractByIdentifiersParams,
152
206
  };
153
207
 
154
208
  export { Types as Types, type TypeListResponse as TypeListResponse };
@@ -0,0 +1,156 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+ import { path } from '../internal/utils/path';
7
+
8
+ /**
9
+ * Author, publish, and install Unity Packages V2 packages
10
+ */
11
+ export class PackageManagedInstalls extends APIResource {
12
+ /**
13
+ * Start installing a published managed package version asynchronously. Unmanaged
14
+ * packages must use POST /package-installs/ instead.
15
+ */
16
+ create(
17
+ body: PackageManagedInstallCreateParams,
18
+ options?: RequestOptions,
19
+ ): APIPromise<PackageManagedInstallCreateResponse> {
20
+ return this._client.post('/package-managed-installs/', { body, ...options });
21
+ }
22
+
23
+ /**
24
+ * Retrieve the status of a managed package install.
25
+ */
26
+ retrieve(installID: string, options?: RequestOptions): APIPromise<PackageManagedInstallRetrieveResponse> {
27
+ return this._client.get(path`/package-managed-installs/${installID}/`, options);
28
+ }
29
+ }
30
+
31
+ /**
32
+ * Living managed package install in a subscriber company.
33
+ */
34
+ export interface PackageManagedInstallCreateResponse {
35
+ /**
36
+ * Identifier field
37
+ */
38
+ id: string;
39
+
40
+ /**
41
+ * Record creation date
42
+ */
43
+ created_at: string;
44
+
45
+ /**
46
+ * Record update date
47
+ */
48
+ updated_at: string;
49
+
50
+ /**
51
+ * The install key of the managed package install
52
+ */
53
+ install_key?: string;
54
+
55
+ /**
56
+ * The published package version currently installed or being installed
57
+ */
58
+ installed_version_id?: string;
59
+
60
+ /**
61
+ * The package key of the managed package
62
+ */
63
+ package_key?: string;
64
+
65
+ /**
66
+ * Component to open after installation completes
67
+ */
68
+ post_install_landing_component?: unknown;
69
+
70
+ /**
71
+ * Installation progress entries
72
+ */
73
+ progress?: Array<unknown>;
74
+
75
+ /**
76
+ * Managed install status (INSTALLING, UPDATING, UNINSTALLING, ACTIVE,
77
+ * ACTIVE_WITH_WARNINGS, UNINSTALLED, FAILED, or UNINSTALL_FAILED)
78
+ */
79
+ status?: string;
80
+ }
81
+
82
+ /**
83
+ * Living managed package install in a subscriber company.
84
+ */
85
+ export interface PackageManagedInstallRetrieveResponse {
86
+ /**
87
+ * Identifier field
88
+ */
89
+ id: string;
90
+
91
+ /**
92
+ * Record creation date
93
+ */
94
+ created_at: string;
95
+
96
+ /**
97
+ * Record update date
98
+ */
99
+ updated_at: string;
100
+
101
+ /**
102
+ * The install key of the managed package install
103
+ */
104
+ install_key?: string;
105
+
106
+ /**
107
+ * The published package version currently installed or being installed
108
+ */
109
+ installed_version_id?: string;
110
+
111
+ /**
112
+ * The package key of the managed package
113
+ */
114
+ package_key?: string;
115
+
116
+ /**
117
+ * Component to open after installation completes
118
+ */
119
+ post_install_landing_component?: unknown;
120
+
121
+ /**
122
+ * Installation progress entries
123
+ */
124
+ progress?: Array<unknown>;
125
+
126
+ /**
127
+ * Managed install status (INSTALLING, UPDATING, UNINSTALLING, ACTIVE,
128
+ * ACTIVE_WITH_WARNINGS, UNINSTALLED, FAILED, or UNINSTALL_FAILED)
129
+ */
130
+ status?: string;
131
+ }
132
+
133
+ export interface PackageManagedInstallCreateParams {
134
+ /**
135
+ * The install key for this managed package install.
136
+ */
137
+ install_key: string;
138
+
139
+ /**
140
+ * The package key of the managed package to install.
141
+ */
142
+ package_key: string;
143
+
144
+ /**
145
+ * The published package version to install.
146
+ */
147
+ version_id: string;
148
+ }
149
+
150
+ export declare namespace PackageManagedInstalls {
151
+ export {
152
+ type PackageManagedInstallCreateResponse as PackageManagedInstallCreateResponse,
153
+ type PackageManagedInstallRetrieveResponse as PackageManagedInstallRetrieveResponse,
154
+ type PackageManagedInstallCreateParams as PackageManagedInstallCreateParams,
155
+ };
156
+ }
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
+ import * as BusinessPartnersAPI from './business-partners';
4
5
  import { APIPromise } from '../core/api-promise';
5
6
  import { PageCursorURL, PagePromise } from '../core/pagination';
6
7
  import { buildHeaders } from '../internal/headers';
@@ -32,6 +33,13 @@ export class Sandboxes extends APIResource {
32
33
  return this._client.post('/sandboxes/', { body, ...options });
33
34
  }
34
35
 
36
+ /**
37
+ * Retrieve a specific sandbox
38
+ */
39
+ retrieve(id: string, options?: RequestOptions): APIPromise<SandboxRetrieveResponse> {
40
+ return this._client.get(path`/sandboxes/${id}/`, options);
41
+ }
42
+
35
43
  /**
36
44
  * Delete a sandbox
37
45
  */
@@ -561,6 +569,262 @@ export namespace SandboxCreateResponse {
561
569
  }
562
570
  }
563
571
 
572
+ /**
573
+ * Meta information for the response.
574
+ */
575
+ export interface SandboxRetrieveResponse extends BusinessPartnersAPI.Meta {
576
+ /**
577
+ * Identifier field
578
+ */
579
+ id: string;
580
+
581
+ /**
582
+ * Record creation date
583
+ */
584
+ created_at: string;
585
+
586
+ /**
587
+ * Display name of the sandbox.
588
+ */
589
+ name: string;
590
+
591
+ /**
592
+ * Sandbox type: developer or full data.
593
+ */
594
+ type: string;
595
+
596
+ /**
597
+ * Record update date
598
+ */
599
+ updated_at: string;
600
+
601
+ /**
602
+ * Type-specific sandbox configuration. Optional for developer sandboxes.
603
+ */
604
+ config_override?: SandboxRetrieveResponse.ConfigOverride;
605
+
606
+ /**
607
+ * Optional sandbox description.
608
+ */
609
+ description?: string;
610
+
611
+ /**
612
+ * Server-generated sandbox handle.
613
+ */
614
+ handle?: string;
615
+
616
+ /**
617
+ * Current lifecycle status.
618
+ */
619
+ status?: string;
620
+ }
621
+
622
+ export namespace SandboxRetrieveResponse {
623
+ /**
624
+ * Type-specific sandbox configuration. Optional for developer sandboxes.
625
+ */
626
+ export interface ConfigOverride {
627
+ /**
628
+ * Custom objects copied into the sandbox.
629
+ */
630
+ custom_objects?: ConfigOverride.CustomObjects;
631
+
632
+ /**
633
+ * Required for developer sandboxes and omitted for full-data sandboxes.
634
+ */
635
+ developer?: ConfigOverride.Developer;
636
+
637
+ /**
638
+ * General outbound notification controls.
639
+ */
640
+ general_notifications?: ConfigOverride.GeneralNotifications;
641
+
642
+ /**
643
+ * Required for connected full-data sandboxes.
644
+ */
645
+ integrations?: ConfigOverride.Integrations;
646
+
647
+ /**
648
+ * Required for full-data sandboxes. Developer sandboxes default to CONNECTED.
649
+ */
650
+ sandbox_mode?: 'CONNECTED' | 'ISOLATED';
651
+
652
+ /**
653
+ * Workflow webhook controls.
654
+ */
655
+ workflow_webhooks?: ConfigOverride.WorkflowWebhooks;
656
+ }
657
+
658
+ export namespace ConfigOverride {
659
+ /**
660
+ * Custom objects copied into the sandbox.
661
+ */
662
+ export interface CustomObjects {
663
+ /**
664
+ * Custom object API names copied into the sandbox.
665
+ */
666
+ co_api_names?: Array<string>;
667
+ }
668
+
669
+ /**
670
+ * Required for developer sandboxes and omitted for full-data sandboxes.
671
+ */
672
+ export interface Developer {
673
+ /**
674
+ * Seed company size for the developer sandbox.
675
+ */
676
+ company_size: 'SMALL' | 'MID' | 'XL';
677
+ }
678
+
679
+ /**
680
+ * General outbound notification controls.
681
+ */
682
+ export interface GeneralNotifications {
683
+ /**
684
+ * Email notification configuration.
685
+ */
686
+ email: GeneralNotifications.Email;
687
+
688
+ /**
689
+ * Push notification configuration.
690
+ */
691
+ push_notifications: GeneralNotifications.PushNotifications;
692
+
693
+ /**
694
+ * SMS notification configuration.
695
+ */
696
+ sms: GeneralNotifications.SMS;
697
+
698
+ /**
699
+ * Slack notification configuration.
700
+ */
701
+ slack?: GeneralNotifications.Slack;
702
+
703
+ /**
704
+ * Microsoft Teams notification configuration.
705
+ */
706
+ teams?: GeneralNotifications.Teams;
707
+ }
708
+
709
+ export namespace GeneralNotifications {
710
+ /**
711
+ * Email notification configuration.
712
+ */
713
+ export interface Email {
714
+ /**
715
+ * Whether outbound messages are allowed or suppressed.
716
+ */
717
+ outbound_behavior: 'SUPPRESS' | 'ALLOW';
718
+
719
+ /**
720
+ * Users allowed to receive outbound messages.
721
+ */
722
+ allowed_users?: Array<string>;
723
+ }
724
+
725
+ /**
726
+ * Push notification configuration.
727
+ */
728
+ export interface PushNotifications {
729
+ /**
730
+ * Whether outbound messages are allowed or suppressed.
731
+ */
732
+ outbound_behavior: 'SUPPRESS' | 'ALLOW';
733
+
734
+ /**
735
+ * Users allowed to receive outbound messages.
736
+ */
737
+ allowed_users?: Array<string>;
738
+ }
739
+
740
+ /**
741
+ * SMS notification configuration.
742
+ */
743
+ export interface SMS {
744
+ /**
745
+ * Whether outbound messages are allowed or suppressed.
746
+ */
747
+ outbound_behavior: 'SUPPRESS' | 'ALLOW';
748
+
749
+ /**
750
+ * Users allowed to receive outbound messages.
751
+ */
752
+ allowed_users?: Array<string>;
753
+ }
754
+
755
+ /**
756
+ * Slack notification configuration.
757
+ */
758
+ export interface Slack {
759
+ /**
760
+ * Whether outbound messages are allowed or suppressed.
761
+ */
762
+ outbound_behavior: 'SUPPRESS' | 'ALLOW';
763
+
764
+ /**
765
+ * Public channels allowed to receive outbound messages.
766
+ */
767
+ allowed_public_channels?: Array<string>;
768
+
769
+ /**
770
+ * Users allowed to receive outbound messages.
771
+ */
772
+ allowed_users?: Array<string>;
773
+ }
774
+
775
+ /**
776
+ * Microsoft Teams notification configuration.
777
+ */
778
+ export interface Teams {
779
+ /**
780
+ * Whether outbound messages are allowed or suppressed.
781
+ */
782
+ outbound_behavior: 'SUPPRESS' | 'ALLOW';
783
+
784
+ /**
785
+ * Public channels allowed to receive outbound messages.
786
+ */
787
+ allowed_public_channels?: Array<string>;
788
+
789
+ /**
790
+ * Users allowed to receive outbound messages.
791
+ */
792
+ allowed_users?: Array<string>;
793
+ }
794
+ }
795
+
796
+ /**
797
+ * Required for connected full-data sandboxes.
798
+ */
799
+ export interface Integrations {
800
+ /**
801
+ * Confirms acceptance of the risks of connected third-party integrations.
802
+ */
803
+ is_risk_acknowledged: boolean;
804
+ }
805
+
806
+ /**
807
+ * Workflow webhook controls.
808
+ */
809
+ export interface WorkflowWebhooks {
810
+ /**
811
+ * IP addresses allowed to receive workflow webhooks.
812
+ */
813
+ allowed_ips?: Array<string>;
814
+
815
+ /**
816
+ * Webhook URLs allowed in the sandbox.
817
+ */
818
+ allowlisted_webhook_urls?: Array<string>;
819
+
820
+ /**
821
+ * Whether workflow webhook traffic is allowed or suppressed.
822
+ */
823
+ outbound_behavior?: 'SUPPRESS' | 'ALLOW';
824
+ }
825
+ }
826
+ }
827
+
564
828
  /**
565
829
  * Company and administrator role used to enter a developer sandbox.
566
830
  */
@@ -821,6 +1085,7 @@ export declare namespace Sandboxes {
821
1085
  export {
822
1086
  type SandboxListResponse as SandboxListResponse,
823
1087
  type SandboxCreateResponse as SandboxCreateResponse,
1088
+ type SandboxRetrieveResponse as SandboxRetrieveResponse,
824
1089
  type SandboxDeveloperSandboxEntryRolesResponse as SandboxDeveloperSandboxEntryRolesResponse,
825
1090
  type SandboxListResponsesPageCursorURL as SandboxListResponsesPageCursorURL,
826
1091
  type SandboxListParams as SandboxListParams,
@@ -8,6 +8,9 @@ import { buildHeaders } from '../internal/headers';
8
8
  import { RequestOptions } from '../internal/request-options';
9
9
  import { path } from '../internal/utils/path';
10
10
 
11
+ /**
12
+ * Custom sites hosted on Rippling
13
+ */
11
14
  export class Sites extends APIResource {
12
15
  /**
13
16
  * Retrieves sites that the user has view or edit access on. Optional query param